Setup CI testing
This commit is contained in:
21
tests/Feature/ExampleTest.php
Normal file
21
tests/Feature/ExampleTest.php
Normal file
@@ -0,0 +1,21 @@
|
||||
<?php
|
||||
|
||||
namespace Tests\Feature;
|
||||
|
||||
use Tests\TestCase;
|
||||
use Illuminate\Foundation\Testing\RefreshDatabase;
|
||||
|
||||
class ExampleTest extends TestCase
|
||||
{
|
||||
/**
|
||||
* A basic test example.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function testBasicTest()
|
||||
{
|
||||
$response = $this->get('/home');
|
||||
|
||||
$response->assertStatus(200);
|
||||
}
|
||||
}
|
28
tests/Unit/GetBaseDNTest.php
Normal file
28
tests/Unit/GetBaseDNTest.php
Normal 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());
|
||||
}
|
||||
}
|
1795
tests/server/openldap/ldif/ldap-test-server.ldif
Normal file
1795
tests/server/openldap/ldif/ldap-test-server.ldif
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user