You've already forked php-flasher
mirror of
https://github.com/php-flasher/php-flasher.git
synced 2026-04-05 12:32:55 +01:00
update tests
This commit is contained in:
@@ -31,10 +31,15 @@ class FlasherNotyfExtensionTest extends TestCase
|
||||
$flasher = $container->getDefinition('flasher');
|
||||
$calls = $flasher->getMethodCalls();
|
||||
|
||||
$this->assertCount(1, $calls);
|
||||
$this->assertCount(2, $calls);
|
||||
|
||||
$this->assertSame('addFactory', $calls[0][0]);
|
||||
$this->assertSame('notyf', $calls[0][1][0]);
|
||||
$this->assertSame('flasher.notyf', (string) $calls[0][1][1]);
|
||||
$this->assertSame('template', $calls[0][1][0]);
|
||||
$this->assertSame('flasher.notification_factory', (string) $calls[0][1][1]);
|
||||
|
||||
$this->assertSame('addFactory', $calls[1][0]);
|
||||
$this->assertSame('notyf', $calls[1][1][0]);
|
||||
$this->assertSame('flasher.notyf', (string) $calls[1][1][1]);
|
||||
}
|
||||
|
||||
public function testConfigurationInjectedIntoFlasherConfig()
|
||||
|
||||
Reference in New Issue
Block a user