Page MenuHomeDevCentral

assertEquals → assertSame in unit tests
ClosedPublic

Authored by dereckson on Feb 11 2016, 02:04.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Feb 9, 12:32
Unknown Object (File)
Sun, Feb 9, 09:57
Unknown Object (File)
Sun, Feb 9, 09:57
Unknown Object (File)
Sun, Feb 9, 09:57
Unknown Object (File)
Sun, Feb 9, 09:57
Unknown Object (File)
Sun, Feb 9, 09:57
Unknown Object (File)
Sat, Feb 8, 07:23
Unknown Object (File)
Sat, Feb 8, 06:32
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.