mirror of
https://github.com/kevin-DL/LaravelShoppingcart.git
synced 2026-01-23 15:41:24 +00:00
Fixed test for php5.3
This commit is contained in:
@@ -7,7 +7,7 @@ php:
|
||||
- 5.6
|
||||
|
||||
before_script:
|
||||
- curl -s http://getcomposer.org/installer | php
|
||||
- php composer.phar install --dev
|
||||
- composer self-update
|
||||
- composer install --prefer-source --no-interaction --dev
|
||||
|
||||
script: phpunit
|
||||
@@ -222,7 +222,8 @@ class CartTest extends PHPUnit_Framework_TestCase {
|
||||
|
||||
$this->cart->add('293ad', 'Product 1', 1, 9.99);
|
||||
|
||||
$this->assertEquals('8cbf215baa3b757e910e5305ab981172', $this->cart->search(array('id' => '293ad'))[0]);
|
||||
$searchResult = $this->cart->search(array('id' => '293ad'));
|
||||
$this->assertEquals('8cbf215baa3b757e910e5305ab981172', $searchResult[0]);
|
||||
}
|
||||
|
||||
public function testCartCanHaveMultipleInstances()
|
||||
|
||||
Reference in New Issue
Block a user