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, Nov 24, 16:36
Unknown Object (File)
Sun, Nov 24, 16:36
Unknown Object (File)
Sun, Nov 24, 16:36
Unknown Object (File)
Tue, Nov 12, 15:35
Unknown Object (File)
Sun, Nov 10, 13:16
Unknown Object (File)
Thu, Nov 7, 22:15
Unknown Object (File)
Thu, Nov 7, 14:59
Unknown Object (File)
Oct 27 2024, 18:09
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.