Skip to content

Commit

Permalink
fixes to code style
Browse files Browse the repository at this point in the history
  • Loading branch information
alepane21 authored and rostyslav-hymon committed Mar 27, 2018
1 parent 47c8d54 commit 2a01489
Showing 1 changed file with 10 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,8 @@ class UrlRewriteTest extends \PHPUnit\Framework\TestCase

protected function setUp()
{
$this->_model = $this->getMockBuilder(
\Magento\Catalog\Model\ResourceModel\Category\Collection::class
)->disableOriginalConstructor()
$this->_model = $this->getMockBuilder(\Magento\Catalog\Model\ResourceModel\Category\Collection::class)
->disableOriginalConstructor()
->setMethodsExcept(['joinUrlRewrite', 'setStoreId', 'getStoreId'])
->getMock();
}
Expand All @@ -26,14 +25,14 @@ public function testStoreIdUsedByUrlRewrite()
{
$cond = '{{table}}.is_autogenerated = 1 AND {{table}}.store_id = 100 AND {{table}}.entity_type = \'category\'';
$this->_model->expects($this->once())
->method('joinTable')
->with(
$this->anything(),
$this->anything(),
$this->anything(),
$this->equalTo($cond),
$this->anything()
);
->method('joinTable')
->with(
$this->anything(),
$this->anything(),
$this->anything(),
$this->equalTo($cond),
$this->anything()
);
$this->_model->setStoreId(100);
$this->_model->joinUrlRewrite();
}
Expand Down

0 comments on commit 2a01489

Please sign in to comment.