Commit a79726e6 authored by Jens Segers's avatar Jens Segers

Switching to Laravel 4.1

parent e6f1a579
...@@ -265,10 +265,10 @@ class QueryBuilderTest extends PHPUnit_Framework_TestCase { ...@@ -265,10 +265,10 @@ class QueryBuilderTest extends PHPUnit_Framework_TestCase {
)); ));
$items = DB::collection('items')->distinct('name')->get(); $items = DB::collection('items')->distinct('name')->get();
$this->assertEquals(3, count($items)); $this->assertEquals(array('knife', 'fork', 'spoon'), $items);
$types = DB::collection('items')->distinct('type')->get(); $types = DB::collection('items')->distinct('type')->get();
$this->assertEquals(2, count($types)); $this->assertEquals(array('sharp', 'round'), $types);
} }
public function testCustomId() public function testCustomId()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment