示例#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']);
 }
示例#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"]);
 }
 /**
  * A basic test example.
  *
  * @return void
  */
 public function testGetAvgNotePresse()
 {
     $movie = new \App\Http\Models\Movies();
     $avg = $movie->getAvgNotePresse();
     $this->assertInternalType("object", $avg);
     $this->assertEquals(1, count($avg));
     $this->assertInstanceOf("stdClass", $avg);
 }