nameserverRepository->insert(nameserver: $nameserver); $nameserverTest = $this->nameserverRepository->findByName(name: 'inserttest.org'); $this->assertIsNotBool(actual: $nameserver); $this->assertEquals(expected: 'inserttest.org', actual: $nameserverTest->getName()); // clean up $this->nameserverRepository->delete(id: $nameserverTest->getId()); } }