Page MenuHomeDevCentral

Base unit test case for service providers
ClosedPublic

Authored by dereckson on Jan 12 2016, 01:21.
Tags
None
Referenced Files
F21119364: D229.id539.diff
Thu, Jan 15, 22:51
F21117459: D229.diff
Thu, Jan 15, 18:35
Unknown Object (File)
Mon, Jan 12, 07:52
Unknown Object (File)
Thu, Jan 1, 18:32
Unknown Object (File)
Thu, Jan 1, 14:20
Unknown Object (File)
Fri, Dec 26, 05:59
Unknown Object (File)
Fri, Dec 26, 02:12
Unknown Object (File)
Fri, Dec 26, 02:12
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.