Page MenuHomeDevCentral

assertEquals → assertSame in unit tests
ClosedPublic

Authored by dereckson on Feb 11 2016, 02:04.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Jan 2, 04:45
Unknown Object (File)
Fri, Dec 27, 20:25
Unknown Object (File)
Thu, Dec 26, 17:19
Unknown Object (File)
Fri, Dec 20, 04:24
Unknown Object (File)
Wed, Dec 11, 23:01
Unknown Object (File)
Tue, Dec 10, 21:09
Unknown Object (File)
Tue, Dec 10, 20:53
Unknown Object (File)
Dec 4 2024, 17:51
Subscribers

Details

Summary

The tests now use assertSame to assert type is respected too.

We keep assertEquals in EventServiceProviderTest::testOmittedFiles,
as we there compare two arrays, regardless of the order of the items.

Test Plan

phpunit

Diff Detail

Repository
rNOTIF Notifications center
Lint
Lint Passed
Unit
Tests Passed
Branch
test-assertSame

Event Timeline

dereckson retitled this revision from to assertEquals → assertSame in unit tests.
dereckson updated this object.
dereckson edited the test plan for this revision. (Show Details)
dereckson added a reviewer: dereckson.
dereckson added inline comments.
tests/Actions/ActionsReportTest.php
61

This is an assertEquals too.

dereckson edited edge metadata.

assertEquals in suggestion to fix a testReport issue

dereckson edited edge metadata.
This revision is now accepted and ready to land.Feb 11 2016, 04:36
This revision was automatically updated to reflect the committed changes.