Skip to content

Commit 4e048c2

Browse files
committed
-
1 parent be0d5f8 commit 4e048c2

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/ai-bundle/tests/Command/PlatformInvokeCommandTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ public function testExecuteSuccessfully()
3232

3333
$platform = $this->createMock(PlatformInterface::class);
3434
$platform->method('invoke')
35-
->with('gpt-4o-mini', self::anything())
35+
->with('gpt-4o-mini', $this->anything())
3636
->willReturn($promise);
3737

3838
$platforms = $this->createMock(ServiceLocator::class);
@@ -49,9 +49,9 @@ public function testExecuteSuccessfully()
4949
'message' => 'Hello!',
5050
]);
5151

52-
self::assertSame(Command::SUCCESS, $exitCode);
53-
self::assertStringContainsString('Response:', $commandTester->getDisplay());
54-
self::assertStringContainsString('Hello! How can I assist you?', $commandTester->getDisplay());
52+
$this->assertSame(Command::SUCCESS, $exitCode);
53+
$this->assertStringContainsString('Response:', $commandTester->getDisplay());
54+
$this->assertStringContainsString('Hello! How can I assist you?', $commandTester->getDisplay());
5555
}
5656

5757
public function testExecuteWithNonExistentPlatform()

0 commit comments

Comments
 (0)