Skip to content
This repository has been archived by the owner on Jan 29, 2020. It is now read-only.

Much better test coverage of AbstractAdapter #38

Merged
merged 1 commit into from
Dec 20, 2015
Merged

Much better test coverage of AbstractAdapter #38

merged 1 commit into from
Dec 20, 2015

Conversation

marc-mabe
Copy link
Member

I don't no why all of these lines were commented out. I think it was from initial writing the component as the tests where written for one of the very very first versions (before 2.0).

I have commented all these tests in and refactored the tests to the current version.

@marc-mabe marc-mabe self-assigned this Nov 7, 2015
@marc-mabe marc-mabe changed the title re-enabled and refactored some tests of AbstractAdapterTest Much better test coverage of AbstractAdapter Nov 7, 2015
@marc-mabe marc-mabe removed the WIP label Nov 7, 2015
@@ -338,23 +348,6 @@ public function testInternalHasItemsCallsInternalHasItem()
$this->assertEquals(['key1'], $rs);
}

public function testGetMetadataCallsInternalGetMetadata()
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This gets tested by testGetMetadatas

@marc-mabe
Copy link
Member Author

The failed test is a real bug and will be fixed in #36

@@ -416,6 +403,10 @@ public function simpleEventHandlingMethodDefinitions()

['decrementItem', 'internalDecrementItem', ['k', 1], true],
['decrementItems', 'internalDecrementItems', [['k1' => 1, 'k2' => 2]], []],

['getCapabilities', 'internalGetCapabilities', [], new Capabilities(
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I prefer create the object in a local var with a descriptive name so you can read the list of test cases quickly

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

updated

@Maks3w
Copy link
Member

Maks3w commented Nov 11, 2015

I'll review this later

@marc-mabe marc-mabe assigned marc-mabe and unassigned Maks3w Dec 20, 2015
@marc-mabe marc-mabe merged commit 7f4d403 into zendframework:master Dec 20, 2015
marc-mabe added a commit that referenced this pull request Dec 20, 2015
Much better test coverage of AbstractAdapter
marc-mabe added a commit that referenced this pull request Dec 20, 2015
marc-mabe added a commit that referenced this pull request Dec 20, 2015
@marc-mabe marc-mabe deleted the AbstractAdapterTests branch December 21, 2015 13:43
@marc-mabe marc-mabe added this to the 2.6.0 milestone Feb 12, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants