Skip to content

Commit

Permalink
Fixed test fixture paths again
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark Guinn committed Feb 23, 2016
1 parent 5e6d698 commit 0dd9b70
Show file tree
Hide file tree
Showing 29 changed files with 47 additions and 47 deletions.
2 changes: 1 addition & 1 deletion tests/ViewableCartTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

class ViewableCartTest extends SapphireTest
{
public static $fixture_file = SHOP_DIR . '/tests/fixtures/shop.yml';
public static $fixture_file = 'silvershop/tests/fixtures/shop.yml';
public static $disable_theme = true;

function setUp()
Expand Down
4 changes: 2 additions & 2 deletions tests/account/AccountPageTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
class AccountPageTest extends FunctionalTest
{
protected static $fixture_file = array(
SHOP_DIR . '/tests/fixtures/Pages.yml',
SHOP_DIR . '/tests/fixtures/shop.yml',
'silvershop/tests/fixtures/Pages.yml',
'silvershop/tests/fixtures/shop.yml',
);
protected static $disable_theme = true;
protected static $use_draft_site = true;
Expand Down
4 changes: 2 additions & 2 deletions tests/account/OrderActionsFormTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
class OrderActionsFormTest extends FunctionalTest
{
protected static $fixture_file = array(
SHOP_DIR . '/tests/fixtures/Pages.yml',
SHOP_DIR . '/tests/fixtures/shop.yml',
'silvershop/tests/fixtures/Pages.yml',
'silvershop/tests/fixtures/shop.yml',
);

public function setUp()
Expand Down
4 changes: 2 additions & 2 deletions tests/cart/ShoppingCartControllerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
*/
class ShoppingCartControllerTest extends FunctionalTest
{
public static $fixture_file = SHOP_DIR . '/tests/fixtures/shop.yml';
public static $fixture_file = 'silvershop/tests/fixtures/shop.yml';
public static $disable_theme = true;
public static $use_draft_site = false;

Expand Down Expand Up @@ -138,7 +138,7 @@ public function testRemoveFromCart()

public function testVariations()
{
$this->loadFixture(SHOP_DIR . '/tests/fixtures/variations.yml');
$this->loadFixture('silvershop/tests/fixtures/variations.yml');
$ballRoot = $this->objFromFixture('Product', 'ball');
$ballRoot->publish('Stage', 'Live');
$ball1 = $this->objFromFixture('ProductVariation', 'redlarge');
Expand Down
4 changes: 2 additions & 2 deletions tests/cart/ShoppingCartTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

class ShoppingCartTest extends SapphireTest
{
public static $fixture_file = SHOP_DIR . '/tests/fixtures/shop.yml';
public static $fixture_file = 'silvershop/tests/fixtures/shop.yml';
public static $disable_theme = true;
public static $use_draft_site = false;

Expand Down Expand Up @@ -51,7 +51,7 @@ public function testClear()

public function testProductVariations()
{
$this->loadFixture(SHOP_DIR . '/tests/fixtures/variations.yml');
$this->loadFixture('silvershop/tests/fixtures/variations.yml');
$ball1 = $this->objFromFixture('ProductVariation', 'redlarge');
$ball2 = $this->objFromFixture('ProductVariation', 'redsmall');

Expand Down
4 changes: 2 additions & 2 deletions tests/checkout/AddressBookCheckoutComponentTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
class AddressBookCheckoutComponentTest extends SapphireTest
{
protected static $fixture_file = array(
SHOP_DIR . '/tests/fixtures/Orders.yml',
SHOP_DIR . '/tests/fixtures/ShopMembers.yml',
'silvershop/tests/fixtures/Orders.yml',
'silvershop/tests/fixtures/ShopMembers.yml',
);
/** @var Order $cart */
protected $cart;
Expand Down
8 changes: 4 additions & 4 deletions tests/checkout/CheckoutComponentTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
class CheckoutComponentTest extends SapphireTest
{
protected static $fixture_file = array(
SHOP_DIR . '/tests/fixtures/Orders.yml',
SHOP_DIR . '/tests/fixtures/Addresses.yml',
SHOP_DIR . '/tests/fixtures/shop.yml',
SHOP_DIR . '/tests/fixtures/ShopMembers.yml',
'silvershop/tests/fixtures/Orders.yml',
'silvershop/tests/fixtures/Addresses.yml',
'silvershop/tests/fixtures/shop.yml',
'silvershop/tests/fixtures/ShopMembers.yml',
);

public function setUp()
Expand Down
2 changes: 1 addition & 1 deletion tests/checkout/CheckoutFormTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

class CheckoutFormTest extends SapphireTest
{
public static $fixture_file = SHOP_DIR . '/tests/fixtures/shop.yml';
public static $fixture_file = 'silvershop/tests/fixtures/shop.yml';

public function setUp()
{
Expand Down
4 changes: 2 additions & 2 deletions tests/checkout/CheckoutPageTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
class CheckoutPageTest extends FunctionalTest
{
protected static $fixture_file = array(
SHOP_DIR . '/tests/fixtures/Pages.yml',
SHOP_DIR . '/tests/fixtures/shop.yml',
'silvershop/tests/fixtures/Pages.yml',
'silvershop/tests/fixtures/shop.yml',
);
protected static $disable_theme = true;
protected static $use_draft_site = true;
Expand Down
8 changes: 4 additions & 4 deletions tests/checkout/CheckoutTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
class CheckoutTest extends SapphireTest
{
protected static $fixture_file = array(
SHOP_DIR . '/tests/fixtures/Pages.yml',
SHOP_DIR . '/tests/fixtures/Orders.yml',
SHOP_DIR . '/tests/fixtures/Addresses.yml',
SHOP_DIR . '/tests/fixtures/ShopMembers.yml',
'silvershop/tests/fixtures/Pages.yml',
'silvershop/tests/fixtures/Orders.yml',
'silvershop/tests/fixtures/Addresses.yml',
'silvershop/tests/fixtures/ShopMembers.yml',
);

public function setUp()
Expand Down
4 changes: 2 additions & 2 deletions tests/checkout/NestedCheckoutTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

class NestedCheckoutTest extends SapphireTest
{
public static $fixture_file = SHOP_DIR . '/tests/fixtures/pages/NestedCheckout.yml';
public static $fixture_file = 'silvershop/tests/fixtures/pages/NestedCheckout.yml';

public function setUp()
{
Expand All @@ -14,7 +14,7 @@ public function testNestedCheckoutForm()
{

$this->assertEquals(
Director::baseURL() . SHOP_DIR . '/checkout/',
Director::baseURL() . 'silvershop/checkout/',
CheckoutPage::find_link(),
'Link is: ' . CheckoutPage::find_link()
);
Expand Down
2 changes: 1 addition & 1 deletion tests/checkout/OrderProcessorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
*/
class OrderProcessorTest extends SapphireTest
{
protected static $fixture_file = SHOP_DIR . '/tests/fixtures/shop.yml';
protected static $fixture_file = 'silvershop/tests/fixtures/shop.yml';
protected static $disable_theme = true;
protected static $use_draft_site = true;
protected $processor;
Expand Down
4 changes: 2 additions & 2 deletions tests/checkout/SteppedCheckoutTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
class SteppedCheckoutTest extends FunctionalTest
{
protected static $fixture_file = array(
SHOP_DIR . '/tests/fixtures/Pages.yml',
SHOP_DIR . '/tests/fixtures/shop.yml',
'silvershop/tests/fixtures/Pages.yml',
'silvershop/tests/fixtures/shop.yml',
);
protected static $use_draft_site = true; //so we don't need to publish
protected $autoFollowRedirection = false;
Expand Down
2 changes: 1 addition & 1 deletion tests/cms/ProductBulkLoaderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

class ProductBulkLoaderTest extends FunctionalTest
{
public static $fixture_file = SHOP_DIR . '/tests/fixtures/shop.yml';
public static $fixture_file = 'silvershop/tests/fixtures/shop.yml';
public static $disable_theme = true;
public static $use_draft_site = true;

Expand Down
2 changes: 1 addition & 1 deletion tests/model/OrderNotificationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
*/
class OrderNotificationTest extends SapphireTest
{
protected static $fixture_file = SHOP_DIR . '/tests/fixtures/shop.yml';
protected static $fixture_file = 'silvershop/tests/fixtures/shop.yml';
/** @var Order */
protected $order;
/** @var OrderEmailNotifier */
Expand Down
2 changes: 1 addition & 1 deletion tests/model/OrderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
*/
class OrderTest extends SapphireTest
{
public static $fixture_file = SHOP_DIR . '/tests/fixtures/shop.yml';
public static $fixture_file = 'silvershop/tests/fixtures/shop.yml';

public function setUp()
{
Expand Down
4 changes: 2 additions & 2 deletions tests/model/RegionRestrictionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
class RegionRestrictionTest extends SapphireTest
{
public static $fixture_file = array(
SHOP_DIR . '/tests/fixtures/RegionRestriction.yml',
SHOP_DIR . '/tests/fixtures/Addresses.yml',
'silvershop/tests/fixtures/RegionRestriction.yml',
'silvershop/tests/fixtures/Addresses.yml',
);

public function testMatchLocal()
Expand Down
4 changes: 2 additions & 2 deletions tests/model/ShopMemberTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
class ShopMemberTest extends FunctionalTest
{
public static $fixture_file = array(
SHOP_DIR . '/tests/fixtures/ShopMembers.yml',
SHOP_DIR . '/tests/fixtures/shop.yml',
'silvershop/tests/fixtures/ShopMembers.yml',
'silvershop/tests/fixtures/shop.yml',
);

public function testGetByIdentifier()
Expand Down
4 changes: 2 additions & 2 deletions tests/model/ShopPaymentTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
class ShopPaymentTest extends FunctionalTest
{
protected static $fixture_file = array(
SHOP_DIR . '/tests/fixtures/Pages.yml',
SHOP_DIR . '/tests/fixtures/shop.yml',
'silvershop/tests/fixtures/Pages.yml',
'silvershop/tests/fixtures/shop.yml',
);
public static $disable_theme = true;

Expand Down
4 changes: 2 additions & 2 deletions tests/model/ZoneTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
class ZoneTest extends SapphireTest
{
public static $fixture_file = array(
SHOP_DIR . '/tests/fixtures/Zones.yml',
SHOP_DIR . '/tests/fixtures/Addresses.yml',
'silvershop/tests/fixtures/Zones.yml',
'silvershop/tests/fixtures/Addresses.yml',
);

public function testMatchingZones()
Expand Down
2 changes: 1 addition & 1 deletion tests/modifiers/FlatTaxModifierTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
*/
class FlatTaxModifierTest extends FunctionalTest
{
protected static $fixture_file = SHOP_DIR . '/tests/fixtures/shop.yml';
protected static $fixture_file = 'silvershop/tests/fixtures/shop.yml';
protected static $disable_theme = true;

public function setUp()
Expand Down
2 changes: 1 addition & 1 deletion tests/modifiers/OrderModifierTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
*/
class OrderModifierTest extends FunctionalTest
{
public static $fixture_file = SHOP_DIR . '/tests/fixtures/shop.yml';
public static $fixture_file = 'silvershop/tests/fixtures/shop.yml';
public static $disable_theme = true;
public static $use_draft_site = true;

Expand Down
2 changes: 1 addition & 1 deletion tests/products/ProductCategoryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

class ProductCategoryTest extends FunctionalTest
{
public static $fixture_file = SHOP_DIR . '/tests/fixtures/shop.yml';
public static $fixture_file = 'silvershop/tests/fixtures/shop.yml';
public static $disable_theme = true;

public function setUp()
Expand Down
2 changes: 1 addition & 1 deletion tests/products/ProductImageTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
*/
class ProductImageTest extends SapphireTest
{
protected static $fixture_file = SHOP_DIR . '/tests/fixtures/shop.yml';
protected static $fixture_file = 'silvershop/tests/fixtures/shop.yml';
/**
* Set to true in {@link self::setUp()} if we created the assets folder, so we know to remove it in
* {@link self::tearDown()}.
Expand Down
2 changes: 1 addition & 1 deletion tests/products/ProductOrderItemTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
*/
class ProductOrderItemTest extends FunctionalTest
{
public static $fixture_file = SHOP_DIR . '/tests/fixtures/shop.yml';
public static $fixture_file = 'silvershop/tests/fixtures/shop.yml';
public static $disable_theme = true;
public static $orig = array();

Expand Down
2 changes: 1 addition & 1 deletion tests/products/ProductTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
*/
class ProductTest extends FunctionalTest
{
protected static $fixture_file = SHOP_DIR . '/tests/fixtures/shop.yml';
protected static $fixture_file = 'silvershop/tests/fixtures/shop.yml';
protected static $disable_theme = true;
protected static $use_draft_site = true;

Expand Down
2 changes: 1 addition & 1 deletion tests/products/variations/ProductVariationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
*/
class ProductVariationTest extends SapphireTest
{
public static $fixture_file = SHOP_DIR . '/tests/fixtures/variations.yml';
public static $fixture_file = 'silvershop/tests/fixtures/variations.yml';
public static $disable_theme = true;
public static $use_draft_site = true;

Expand Down
2 changes: 1 addition & 1 deletion tests/products/variations/ProductVariationVersionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
*/
class ProductVariationVersionTest extends SapphireTest
{
public static $fixture_file = SHOP_DIR . '/tests/fixtures/variations.yml';
public static $fixture_file = 'silvershop/tests/fixtures/variations.yml';
public static $disable_theme = true;
public static $use_draft_site = true;

Expand Down
2 changes: 1 addition & 1 deletion tests/reports/ShopReportTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

class ShopReportTest extends SapphireTest
{
protected static $fixture_file = SHOP_DIR . '/tests/fixtures/shop.yml';
protected static $fixture_file = 'silvershop/tests/fixtures/shop.yml';

function testSalesReport()
{
Expand Down

0 comments on commit 0dd9b70

Please sign in to comment.