Ejemplo n.º 1
0
 /**
  * @test
  */
 public function shouldReturnAccountWithBugs()
 {
     //when
     $account = Account::where(array('name' => "LIKE 'Air Sa%'"))->fetch();
     //then
     Assert::thatArray($account->bugs)->hasSize(2)->onProperty('name')->containsOnly("Syntax error appears when running old reports", "Broken image appears in home page");
 }
Ejemplo n.º 2
0
 /**
  * @test
  */
 public function shouldReturnResultsOrderedByName()
 {
     $this->markTestSkipped("Order doesn't working");
     //when
     $account = Account::where(array('name' => "LIKE 'Air%'"))->order('accounts.name desc')->fetchAll();
     //then
     Assert::thatArray($account)->hasSize(2)->onProperty('name')->containsExactly();
 }