Skip to content

Commit

Permalink
Updated tests to use TestCustomerLocator from SclZfCart test suite
Browse files Browse the repository at this point in the history
  • Loading branch information
Tom Oram committed Nov 25, 2013
1 parent c7e4538 commit d3065c9
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 24 deletions.
1 change: 0 additions & 1 deletion src/SclZfCartSagepay/Sagepay.php
Original file line number Diff line number Diff line change
Expand Up @@ -196,5 +196,4 @@ private function getCallbackUrl($type)
//['force_canonical' => true]
);
}

}
1 change: 1 addition & 0 deletions tests/Bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ public static function init($config)
{
$loader = self::getAutoloader();

$loader->add('SclZfCartTests\\', __DIR__ . '/../vendor/sclinternet/scl-zf-cart/tests');
$loader->add('SclZfCartSagepayTests\\', __DIR__);

self::$application = \Zend\Mvc\Application::init($config);
Expand Down
2 changes: 1 addition & 1 deletion tests/SclZfCartSagepayTests/SagepayTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
namespace SclZfCartSagepayTests;

use SclContact\Contact;
use SclZfCartSagepayTests\TestAssets\TestCustomerLocator;
use SclZfCartTests\TestAssets\TestCustomerLocator;
use SclZfCartSagepay\Options\ConnectionOptions;
use SclZfCartSagepay\Options\SagepayOptions;
use SclZfCartSagepay\Sagepay;
Expand Down
21 changes: 0 additions & 21 deletions tests/SclZfCartSagepayTests/TestAssets/TestCustomerLocator.php

This file was deleted.

2 changes: 1 addition & 1 deletion tests/config.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
'SclZfCart\Customer\CustomerLocatorInterface' => 'test_customer_locator',
],
'invokables' => [
'test_customer_locator' => 'SclZfCartSagepayTests\TestAssets\TestCustomerLocator',
'test_customer_locator' => 'SclZfCartTests\TestAssets\TestCustomerLocator',
],
],
];

0 comments on commit d3065c9

Please sign in to comment.