Skip to content

Commit

Permalink
#18956 Fix for phpunit-test case
Browse files Browse the repository at this point in the history
  • Loading branch information
larsroettig committed Nov 4, 2018
1 parent 144ea18 commit 0f575bc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -177,8 +177,8 @@ private function createGroups(array $items, array $data)
);

$group = $this->groupFactory->create();
if (!isset($groupData['root_categry_id'])) {
$groupData['root_categry_id'] = 0;
if (!isset($groupData['root_category_id'])) {
$groupData['root_category_id'] = 0;
}

$group->setData($groupData);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -291,9 +291,6 @@ public function testRunGroup()
$this->groupMock->expects($this->exactly(3))
->method('getResource')
->willReturn($this->abstractDbMock);
$this->groupMock->expects($this->once())
->method('setRootCategoryId')
->with(0);
$this->groupMock->expects($this->once())
->method('getDefaultStoreId')
->willReturn($defaultStoreId);
Expand Down

0 comments on commit 0f575bc

Please sign in to comment.