diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/acceptance/features/bootstrap/ContactsMenuContext.php | 2 | ||||
-rw-r--r-- | tests/lib/TemplateFunctionsTest.php | 3 |
2 files changed, 2 insertions, 3 deletions
diff --git a/tests/acceptance/features/bootstrap/ContactsMenuContext.php b/tests/acceptance/features/bootstrap/ContactsMenuContext.php index 1be38b79e70..4cb2e5885d5 100644 --- a/tests/acceptance/features/bootstrap/ContactsMenuContext.php +++ b/tests/acceptance/features/bootstrap/ContactsMenuContext.php @@ -66,7 +66,7 @@ class ContactsMenuContext implements Context, ActorAwareInterface { * @return Locator */ private static function menuItemFor($contactName) { - return Locator::forThe()->xpath("//*[@class = 'contact' and normalize-space() = '$contactName']")-> + return Locator::forThe()->xpath("//*[@class = 'full-name' and normalize-space() = '$contactName']")-> descendantOf(self::contactsMenu())-> describedAs($contactName . " contact in Contacts menu"); } diff --git a/tests/lib/TemplateFunctionsTest.php b/tests/lib/TemplateFunctionsTest.php index ac73873ce37..a6385670487 100644 --- a/tests/lib/TemplateFunctionsTest.php +++ b/tests/lib/TemplateFunctionsTest.php @@ -27,8 +27,7 @@ class TemplateFunctionsTest extends \Test\TestCase { protected function setUp(): void { parent::setUp(); - $loader = new \OC\Autoloader([\OC::$SERVERROOT . '/lib']); - $loader->load('OC_Template'); + require_once \OC::$SERVERROOT . '/lib/private/legacy/OC_Template.php'; } public function testPJavaScript() { |