create(); $title = __('app.show_detail_title', [ 'name' => $singleMstr->name, 'type' => __('vehicle.vehicle'), ]); $link = ''; $link .= $singleMstr->name; $link .= ''; $this->assertEquals($link, $singleMstr->name_link); } /** @test */ public function a_master_has_belongs_to_creator_relation() { $singleMstr = factory(Master::class)->make(); $this->assertInstanceOf(User::class, $singleMstr->creator); $this->assertEquals($singleMstr->creator_id, $singleMstr->creator->id); } }