public function testGetData() { $author = new Authors(array('name' => 'Chuck Norris')); $author->save(); $post = new Mormons('authors'); $this->assertEqual('Chuck Norris', $post->first()->name); $this->assertEqual(1, $post->first()->id); }
public function testGetData() { $author = new Authors(array('name' => 'Chuck Norris')); $author->save(); $post = new Mormons('authors'); $this->assertEqual('Chuck Norris', $post->first()->name); $this->assertEqual(1, $post->first()->id); }