public function testSeUmaTagPodeSerPersistida() { $tag = Tag::create(['name' => 'Tag test']); $this->assertEquals('Tag test', $tag->name); $category = Tag::all()->first(); $this->assertEquals('Tag test', $tag->name); }
public function test_check_if_a_tag_can_be_persisted() { $tag = Tag::create(['name' => 'Tag test']); $this->assertEquals('Tag test', $tag->name); $tag = Tag::all()->first(); $this->assertEquals('Tag test', $tag->name); }