Fixes for testing

This commit is contained in:
2024-01-21 18:15:23 +11:00
parent 4c8bd1c81f
commit 59c8ed95c5
3 changed files with 4 additions and 4 deletions

View File

@@ -1,26 +0,0 @@
<?php
namespace Tests\Unit;
use Tests\TestCase;
use App\Classes\LDAP\Server;
class GetBaseDNTest extends TestCase
{
/**
* Test that we can get the Base DN of an LDAP server
*
* @return void
* @throws \LdapRecord\Query\ObjectNotFoundException
* @covers \App\Classes\LDAP\Server::baseDNs()
*/
public function testBaseDnExists()
{
$o = Server::baseDNs();
$this->assertIsObject($o);
$this->assertCount(6,$o->toArray());
$this->assertEquals('dc=Test',$o->first()->getDn());
}
}