phpldapadmin/tests/Unit/GetBaseDNTest.php
Deon George 2ccc1d3b83 Framework update and updates from other projects,remove leenooks/laravel
Framework updates, and hack to get CI testing working
2021-12-11 00:24:00 +11:00

27 lines
487 B
PHP

<?php
namespace Tests\Unit;
use Tests\TestCase;
use App\Ldap\Entry;
class GetBaseDNTest extends TestCase
{
/**
* Test that we can get the Base DN of an LDAP server
*
* @return void
* @throws \LdapRecord\Models\ModelNotFoundException
* @covers \App\Ldap\Entry::baseDN()
*/
public function testBaseDNExists()
{
$o = (new Entry)->baseDN();
$this->assertIsObject($o);
$this->assertCount(1,$o->toArray());
$this->assertEquals('dc=Test',$o->first()->getDn());
}
}