update tests

This commit is contained in:
KHOUBZA Younes
2020-12-15 15:17:00 +01:00
parent 6879b99084
commit 3cbc385ec6
@@ -31,10 +31,15 @@ class FlasherSweetAlertExtensionTest 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('sweet_alert', $calls[0][1][0]);
$this->assertSame('flasher.sweet_alert', (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('sweet_alert', $calls[1][1][0]);
$this->assertSame('flasher.sweet_alert', (string) $calls[1][1][1]);
}
public function testConfigurationInjectedIntoFlasherConfig()