@@ -76,11 +76,11 @@ class LogOutTest extends TestCase
7676 protected function setUp (): void
7777 {
7878 $ this ->curlFactoryMock = $ this ->createMock (CurlFactory::class);
79- $ this ->userProfileInterfaceMock = $ this ->createMock (UserProfileInterface::class);
80- $ this ->userProfileRepositoryInterfaceMock = $ this ->createMock (UserProfileRepositoryInterface::class);
81- $ this ->userContextInterfaceMock = $ this ->createMock (UserContextInterface::class);
82- $ this ->configInterfaceMock = $ this ->createMock (ConfigInterface::class);
83- $ this ->loggerInterfaceMock = $ this ->createMock (LoggerInterface::class);
79+ $ this ->userProfileInterfaceMock = $ this ->getMockForAbstractClass (UserProfileInterface::class);
80+ $ this ->userProfileRepositoryInterfaceMock = $ this ->getMockForAbstractClass (UserProfileRepositoryInterface::class);
81+ $ this ->userContextInterfaceMock = $ this ->getMockForAbstractClass (UserContextInterface::class);
82+ $ this ->configInterfaceMock = $ this ->getMockForAbstractClass (ConfigInterface::class);
83+ $ this ->loggerInterfaceMock = $ this ->getMockForAbstractClass (LoggerInterface::class);
8484 $ this ->model = new LogOut (
8585 $ this ->userContextInterfaceMock ,
8686 $ this ->userProfileRepositoryInterfaceMock ,
@@ -123,7 +123,7 @@ public function testExecute(): void
123123 $ this ->userProfileRepositoryInterfaceMock ->expects ($ this ->once ())
124124 ->method ('save ' )
125125 ->willReturn (null );
126- $ this ->assertEquals ( true , $ this ->model ->execute ());
126+ $ this ->assertTrue ( $ this ->model ->execute ());
127127 }
128128
129129 /**
@@ -154,7 +154,7 @@ public function testExecuteWithError(): void
154154 ->willReturn (self ::HTTP_ERROR );
155155 $ this ->loggerInterfaceMock ->expects ($ this ->once ())
156156 ->method ('critical ' );
157- $ this ->assertEquals ( false , $ this ->model ->execute ());
157+ $ this ->assertFalse ( $ this ->model ->execute ());
158158 }
159159
160160 /**
0 commit comments