Page MenuHomeDevCentral

Base unit test case for service providers
ClosedPublic

Authored by dereckson on Jan 12 2016, 01:21.
Tags
None
Referenced Files
F3914715: D229.diff
Thu, Dec 19, 16:40
F3912451: D229.diff
Thu, Dec 19, 05:55
Unknown Object (File)
Tue, Dec 17, 03:34
Unknown Object (File)
Sat, Dec 14, 17:47
Unknown Object (File)
Sat, Dec 14, 17:28
Unknown Object (File)
Fri, Dec 13, 04:06
Unknown Object (File)
Fri, Dec 6, 00:20
Unknown Object (File)
Wed, Dec 4, 17:31
Subscribers

Details

Reviewers
dereckson
Commits
Unknown Object (Diffusion Commit)
rNOTIFcf0556156caf: Base unit test case for service providers
Summary

To tests our service providers, we provide a generic TestCase
with the following assertion method:

public function assertServiceInstanceOf ($expectedType, $serviceName)

It checks if the type of the specified service from the application
container is an instance of the expected type.

Test Plan
BrokerServiceProviderTest::testType()
$this->assertServiceInstanceOf(
    'Keruald\Broker\Broker',
    'broker'
);

Diff Detail

Repository
rNOTIF Notifications center
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

dereckson retitled this revision from to Base unit test case for service providers.
dereckson updated this object.
dereckson edited the test plan for this revision. (Show Details)
dereckson added a reviewer: dereckson.
dereckson edited edge metadata.
This revision is now accepted and ready to land.Jan 12 2016, 01:25
This revision was automatically updated to reflect the committed changes.