create(); $this->assertTrue($religion->account()->exists()); } /** @test */ public function it_gets_the_religion_name() { $religion = Religion::factory()->create([ 'name' => null, 'translation_key' => 'Sikhism', ]); $this->assertEquals( 'Sikhism', $religion->name ); $religion = Religion::factory()->create([ 'name' => 'God', 'translation_key' => null, ]); $this->assertEquals( 'God', $religion->name ); } }