Setup CI testing

This commit is contained in:
Deon George
2020-08-23 12:30:18 +10:00
parent f3282bed38
commit 1e3e4b2196
11 changed files with 1981 additions and 83 deletions

View File

@@ -0,0 +1,28 @@
<?php
namespace Tests\Unit;
use Illuminate\Support\Collection;
use Tests\TestCase;
use Illuminate\Foundation\Testing\WithFaker;
use Illuminate\Foundation\Testing\RefreshDatabase;
use Leenooks\LDAP\Server;
class GetBaseDNTest extends TestCase
{
/**
* Test that we can get the Base DN of an LDAP server
*
* @return void
*/
public function testBaseDNExists()
{
$o = new Server;
$x = $o->getBaseDN();
$this->assertIsObject($x);
$this->assertCount(1,$x->toArray());
$this->assertContains('dc=Test',$x->toArray());
}
}