-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow usage of channelContext in product url provider
- Loading branch information
1 parent
67e2812
commit 6b4ccaf
Showing
12 changed files
with
34 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<?php | ||
|
||
namespace Tests\SitemapPlugin\Controller; | ||
|
||
use Lakion\ApiTestCase\ApiTestCase; | ||
use Lakion\ApiTestCase\XmlApiTestCase; | ||
|
||
/** | ||
* Class AbstractTestController | ||
* @package Tests\SitemapPlugin\Controller | ||
*/ | ||
abstract class AbstractTestController extends XmlApiTestCase | ||
{ | ||
/** | ||
* @before | ||
*/ | ||
public function setUpClient() | ||
{ | ||
$this->client = static::createClient(array(), array()); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,17 +2,16 @@ | |
|
||
namespace Tests\SitemapPlugin\Controller; | ||
|
||
use Lakion\ApiTestCase\XmlApiTestCase; | ||
use Sylius\Component\Core\Model\Product; | ||
use Sylius\Component\Core\Model\Taxon; | ||
|
||
/** | ||
* @author Stefan Doorn <[email protected]> | ||
*/ | ||
class SitemapAllControllerApiRelativeTest extends XmlApiTestCase | ||
class SitemapAllControllerApiRelativeTest extends AbstractTestController | ||
{ | ||
use RelativeClientTrait; | ||
use TearDownTrait; | ||
use RelativeClientTrait; | ||
use TearDownTrait; | ||
|
||
/** | ||
* @before | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,14 +2,13 @@ | |
|
||
namespace Tests\SitemapPlugin\Controller; | ||
|
||
use Lakion\ApiTestCase\XmlApiTestCase; | ||
use Sylius\Component\Core\Model\Product; | ||
use Sylius\Component\Core\Model\Taxon; | ||
|
||
/** | ||
* @author Stefan Doorn <[email protected]> | ||
*/ | ||
class SitemapAllControllerApiTest extends XmlApiTestCase | ||
class SitemapAllControllerApiTest extends AbstractTestController | ||
{ | ||
use TearDownTrait; | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,14 +2,13 @@ | |
|
||
namespace Tests\SitemapPlugin\Controller; | ||
|
||
use Lakion\ApiTestCase\XmlApiTestCase; | ||
use Sylius\Component\Core\Model\Product; | ||
use Sylius\Component\Core\Model\Taxon; | ||
|
||
/** | ||
* @author Stefan Doorn <[email protected]> | ||
*/ | ||
class SitemapIndexControllerApiRelativeTest extends XmlApiTestCase | ||
class SitemapIndexControllerApiRelativeTest extends AbstractTestController | ||
{ | ||
use RelativeClientTrait; | ||
use TearDownTrait; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,14 +2,13 @@ | |
|
||
namespace Tests\SitemapPlugin\Controller; | ||
|
||
use Lakion\ApiTestCase\XmlApiTestCase; | ||
use Sylius\Component\Core\Model\Product; | ||
use Sylius\Component\Core\Model\Taxon; | ||
|
||
/** | ||
* @author Stefan Doorn <[email protected]> | ||
*/ | ||
class SitemapIndexControllerApiTest extends XmlApiTestCase | ||
class SitemapIndexControllerApiTest extends AbstractTestController | ||
{ | ||
use TearDownTrait; | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,13 +2,12 @@ | |
|
||
namespace Tests\SitemapPlugin\Controller; | ||
|
||
use Lakion\ApiTestCase\XmlApiTestCase; | ||
use Sylius\Component\Core\Model\Product; | ||
|
||
/** | ||
* @author Stefan Doorn <[email protected]> | ||
*/ | ||
class SitemapProductControllerApiLocalesTest extends XmlApiTestCase | ||
class SitemapProductControllerApiLocalesTest extends AbstractTestController | ||
{ | ||
use TearDownTrait; | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,13 +2,12 @@ | |
|
||
namespace Tests\SitemapPlugin\Controller; | ||
|
||
use Lakion\ApiTestCase\XmlApiTestCase; | ||
use Sylius\Component\Core\Model\Product; | ||
|
||
/** | ||
* @author Stefan Doorn <[email protected]> | ||
*/ | ||
class SitemapProductControllerApiRelativeTest extends XmlApiTestCase | ||
class SitemapProductControllerApiRelativeTest extends AbstractTestController | ||
{ | ||
use RelativeClientTrait; | ||
use TearDownTrait; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,13 +2,12 @@ | |
|
||
namespace Tests\SitemapPlugin\Controller; | ||
|
||
use Lakion\ApiTestCase\XmlApiTestCase; | ||
use Sylius\Component\Core\Model\Product; | ||
|
||
/** | ||
* @author Stefan Doorn <[email protected]> | ||
*/ | ||
class SitemapProductControllerApiTest extends XmlApiTestCase | ||
class SitemapProductControllerApiTest extends AbstractTestController | ||
{ | ||
use TearDownTrait; | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,13 +2,12 @@ | |
|
||
namespace Tests\SitemapPlugin\Controller; | ||
|
||
use Lakion\ApiTestCase\XmlApiTestCase; | ||
use Sylius\Component\Core\Model\Taxon; | ||
|
||
/** | ||
* @author Stefan Doorn <[email protected]> | ||
*/ | ||
class SitemapTaxonControllerApiLocalesTest extends XmlApiTestCase | ||
class SitemapTaxonControllerApiLocalesTest extends AbstractTestController | ||
{ | ||
use TearDownTrait; | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,13 +2,12 @@ | |
|
||
namespace Tests\SitemapPlugin\Controller; | ||
|
||
use Lakion\ApiTestCase\XmlApiTestCase; | ||
use Sylius\Component\Core\Model\Taxon; | ||
|
||
/** | ||
* @author Stefan Doorn <[email protected]> | ||
*/ | ||
class SitemapTaxonControllerApiRelativeTest extends XmlApiTestCase | ||
class SitemapTaxonControllerApiRelativeTest extends AbstractTestController | ||
{ | ||
use RelativeClientTrait; | ||
use TearDownTrait; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,13 +2,12 @@ | |
|
||
namespace Tests\SitemapPlugin\Controller; | ||
|
||
use Lakion\ApiTestCase\XmlApiTestCase; | ||
use Sylius\Component\Core\Model\Taxon; | ||
|
||
/** | ||
* @author Stefan Doorn <[email protected]> | ||
*/ | ||
class SitemapTaxonControllerApiTest extends XmlApiTestCase | ||
class SitemapTaxonControllerApiTest extends AbstractTestController | ||
{ | ||
use TearDownTrait; | ||
|
||
|