コード例 #1
0
ファイル: BreweryTest.php プロジェクト: calascionec/tapThat
 function test_deleteAll()
 {
     //Arrange
     $name = "Bullfrog Brewery";
     $location = "Somewhere in Williamsport";
     $link = "www.bullfrogbrewing.com";
     $test_brewery = new Brewery($name, $location, $link);
     $test_brewery->save();
     $name = "Yards Brewing Co.";
     $location = "Philthadone";
     $link = "www.makebeer.com";
     $test_brewery2 = new Brewery($name, $location, $link);
     $test_brewery2->save();
     //Act
     Brewery::deleteAll();
     //Assert
     $result = Brewery::getAll();
     $this->assertEquals([], $result);
 }