Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
schlessera committed Aug 2, 2021
1 parent 14af92b commit 9ef514e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/php/src/Infrastructure/ServiceBasedPluginTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ public function test_it_handles_delays_for_requirements() {

$plugin->register();

$this->assertEquals( 1, count( $container ) );
$this->assertEquals( 2, count( $container ) );
$this->assertFalse( $container->has( 'service_a' ) );
$this->assertTrue( $container->has( 'service_b' ) );
$this->assertFalse( $container->has( 'service_with_requirements' ) );
Expand All @@ -231,7 +231,7 @@ public function test_it_handles_delays_for_requirements() {

$this->assertEquals( 4, count( $container ) );
$this->assertTrue( $container->has( 'service_a' ) );
$this->assertInstanceof( DummyService::class, $container->get( 'service_a' ) );
$this->assertInstanceof( DummyServiceWithDelay::class, $container->get( 'service_a' ) );
$this->assertTrue( $container->has( 'service_b' ) );
$this->assertInstanceof( DummyService::class, $container->get( 'service_b' ) );
$this->assertTrue( $container->has( 'service_with_requirements' ) );
Expand Down

0 comments on commit 9ef514e

Please sign in to comment.