From a4fec3aea3111ed58eef0fa37b8f41591f4a9cca Mon Sep 17 00:00:00 2001 From: katarzynazawada <> Date: Thu, 16 May 2024 10:05:05 +0200 Subject: [PATCH] Fix CS --- tests/Browser/Element/Assert/CollectionAssertTest.php | 2 +- .../Condition/ElementTransitionHasEndedConditionTest.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/Browser/Element/Assert/CollectionAssertTest.php b/tests/Browser/Element/Assert/CollectionAssertTest.php index ac212300..63325b51 100644 --- a/tests/Browser/Element/Assert/CollectionAssertTest.php +++ b/tests/Browser/Element/Assert/CollectionAssertTest.php @@ -33,7 +33,7 @@ public function testAssertionPasses(array $expectedElementTexts, array $actualEl $collectionAssert = new CollectionAssert($this->locator, $collection); $returnedCollection = $collectionAssert->containsElementsWithText($expectedElementTexts); - $this->assertSame($collection, $returnedCollection); + self::assertSame($collection, $returnedCollection); } /** diff --git a/tests/lib/Browser/Element/Condition/ElementTransitionHasEndedConditionTest.php b/tests/lib/Browser/Element/Condition/ElementTransitionHasEndedConditionTest.php index 818cbda6..5bd47e75 100644 --- a/tests/lib/Browser/Element/Condition/ElementTransitionHasEndedConditionTest.php +++ b/tests/lib/Browser/Element/Condition/ElementTransitionHasEndedConditionTest.php @@ -66,7 +66,7 @@ private function createChildElement(bool $hasStartedTransition, bool $hasEndedTr { $childElement = $this->createStub(ElementInterface::class); $childElement->method('getText')->willReturn('ChildText'); - $childElement->method('hasClass')->will($this->returnValueMap( + $childElement->method('hasClass')->will(self::returnValueMap( [ ['ibexa-selenium-transition-started', $hasStartedTransition], ['ibexa-selenium-transition-ended', $hasEndedTransition],