public function testDeleteAll() { $books = Book::select($this->getConn())->execute(); $this->assertSame(50, count($books)); Book::deleteAll($this->getConn()); $no_books = Book::select($this->getConn())->execute(); $this->assertSame(0, count($no_books)); }
public function testDeleteAll() { $this->conn->expects($this->once())->method('delete')->with('books'); Book::deleteAll($this->conn); }