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