예제 #1
0
 /**
  * Tests sort() method
  *
  * @return void
  */
 public function testSort()
 {
     $assoc = new BelongsToMany('Test');
     $this->assertNull($assoc->sort());
     $assoc->sort(['id' => 'ASC']);
     $this->assertEquals(['id' => 'ASC'], $assoc->sort());
 }