Exemplo n.º 1
0
 /**
  * A basic test example.
  *
  * @return void
  */
 public function testCreateInDatabase()
 {
     $movie = new \App\Http\Models\Movies();
     $movie->title = "Star Wars 3";
     $movie->save();
     $this->seeInDatabase('movies', ["title" => "Star Wars 3"]);
 }
Exemplo n.º 2
0
 /**
  * A basic test example.
  *
  * @return void
  */
 public function testCreateInDatabase()
 {
     $movie = new \App\Http\Models\Movies();
     $movie->title = 'Star Wars 3';
     $movie->save();
     $this->seeInDatabase('movies', ['title' => 'Star Wars 3']);
 }
Exemplo n.º 3
0
 /**
  * A basic test example.
  *
  * @return void
  */
 public function testRemoveInDatabase()
 {
     $movie = new \App\Http\Models\Movies();
     $movie->title = "Star Wars 3";
     $movie->save();
     $movie = \App\Http\Models\Movies::where("title", "=", "Star Wars 3")->first();
     $movie->delete();
     $this->dontSeeInDatabase('movies', ["title" => "Star Wars 3"]);
 }
Exemplo n.º 4
0
 /**
  * A basic test example.
  *
  * @return void
  */
 public function testRemoveInDatabase()
 {
     $movie = new \App\Http\Models\Movies();
     $movie->title = 'Star Wars 3';
     $movie->save();
     $movie = \App\Http\Models\Movies::where('title', '=', 'Star Wars 3')->first();
     $movie->delete();
     $this->dontSeeInDatabase('movies', ['title' => 'Star Wars 3']);
 }