Skip to content

Commit

Permalink
Add missing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Westin Shafer committed Jul 25, 2017
1 parent 9152f4a commit 20dd799
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 0 deletions.
11 changes: 11 additions & 0 deletions tests/Service/FormatterManagerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,4 +65,15 @@ public function testGetServiceConfig()
$result = $this->service->getServiceConfig('my-config-name');
$this->assertEquals($this->mockServiceConfig, $result);
}

public function testHasServiceConfig()
{
$this->mockConfig->expects($this->once())
->method('hasFormatterConfig')
->with('my-config-name')
->willReturn(true);

$result = $this->service->hasServiceConfig('my-config-name');
$this->assertTrue($result);
}
}
11 changes: 11 additions & 0 deletions tests/Service/HandlerManagerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -277,4 +277,15 @@ public function testGetMissingFormatterService()

$this->service->get('my-service');
}

public function testHasServiceConfig()
{
$this->mockConfig->expects($this->once())
->method('hasHandlerConfig')
->with('my-config-name')
->willReturn(true);

$result = $this->service->hasServiceConfig('my-config-name');
$this->assertTrue($result);
}
}
11 changes: 11 additions & 0 deletions tests/Service/ProcessorManagerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,4 +65,15 @@ public function testGetServiceConfig()
$result = $this->service->getServiceConfig('my-config-name');
$this->assertEquals($this->mockServiceConfig, $result);
}

public function testHasServiceConfig()
{
$this->mockConfig->expects($this->once())
->method('hasProcessorConfig')
->with('my-config-name')
->willReturn(true);

$result = $this->service->hasServiceConfig('my-config-name');
$this->assertTrue($result);
}
}

0 comments on commit 20dd799

Please sign in to comment.