Page MenuHomeDevCentral

assertEquals → assertSame in unit tests
ClosedPublic

Authored by dereckson on Feb 11 2016, 02:04.
Tags
None
Referenced Files
F10959174: D281.diff
Thu, Aug 7, 08:38
Unknown Object (File)
Mon, Aug 4, 00:08
Unknown Object (File)
Sun, Aug 3, 17:24
Unknown Object (File)
Sun, Aug 3, 15:43
Unknown Object (File)
Sat, Aug 2, 15:25
Unknown Object (File)
Sat, Aug 2, 05:52
Unknown Object (File)
Sat, Aug 2, 04:09
Unknown Object (File)
Sat, Aug 2, 03:41
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.