Page MenuHomeDevCentral

assertEquals → assertSame in unit tests
ClosedPublic

Authored by dereckson on Feb 11 2016, 02:04.
Tags
None
Referenced Files
F11791979: D281.id.diff
Mon, Sep 22, 17:26
F11784389: D281.id661.diff
Sun, Sep 21, 19:43
Unknown Object (File)
Sun, Sep 21, 13:12
Unknown Object (File)
Sat, Sep 20, 18:48
Unknown Object (File)
Fri, Sep 19, 21:01
Unknown Object (File)
Fri, Sep 19, 09:31
Unknown Object (File)
Fri, Sep 19, 07:38
Unknown Object (File)
Fri, Sep 19, 07:34
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.