Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F2527977
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
View Options
diff --git a/src/tests/Feature/PowerDNS/DomainTest.php b/src/tests/Feature/PowerDNS/DomainTest.php
index a4663d30..28e0d9d5 100644
--- a/src/tests/Feature/PowerDNS/DomainTest.php
+++ b/src/tests/Feature/PowerDNS/DomainTest.php
@@ -1,48 +1,47 @@
<?php
namespace Tests\Feature\PowerDNS;
use App\PowerDNS\Domain;
use App\PowerDNS\Record;
use Tests\TestCase;
class DomainTest extends TestCase
{
/** @var \App\PowerDNS\Domain $domain */
private $domain = null;
/**
* {@inheritDoc}
*/
public function setUp(): void
{
parent::setUp();
$this->domain = Domain::firstOrCreate(['name' => 'test-domain.com']);
}
/**
* {@inheritDoc}
*/
public function tearDown(): void
{
$this->domain->delete();
parent::tearDown();
}
/**
* Test domain record creation (observer)
*/
public function testDomainCreate(): void
{
$this->assertCount(1, $this->domain->records()->where('type', 'SOA')->get());
$this->assertCount(2, $this->domain->records()->where('type', 'NS')->get());
- $this->assertCount(2, $this->domain->records()->where('type', 'A')->get());
- $this->assertCount(5, $this->domain->records()->get());
+ $this->assertCount(3, $this->domain->records()->get());
$this->assertCount(1, $this->domain->settings()->get());
// TODO: Test content of every domain record/setting
}
}
File Metadata
Details
Attached
Mime Type
text/x-diff
Expires
Sat, Jan 31, 9:04 PM (1 d, 9 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
426484
Default Alt Text
(1 KB)
Attached To
Mode
R2 kolab
Attached
Detach File
Event Timeline
Log In to Comment