Skip to content

Commit

Permalink
tests
Browse files Browse the repository at this point in the history
  • Loading branch information
alexmpunkt committed Jan 30, 2017
1 parent 3f9098c commit aa8eccc
Show file tree
Hide file tree
Showing 4 changed files with 54 additions and 3 deletions.
1 change: 0 additions & 1 deletion src/Person/Beziehung/GegenbeziehungFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,5 +46,4 @@ private static function getPairs(): array

return $pairs;
}

}
27 changes: 27 additions & 0 deletions tests/Person/Beziehung/BeruflicheBeziehungTest.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
<?php
/**
* Created by PhpStorm.
* User: alex
* Date: 30.01.17
* Time: 09:49
*/

namespace Demv\Werte\Tests\Person\Beziehung;

use Demv\Werte\Person\Beziehung\Beruflich\BeruflicheBeziehung;
use PHPUnit\Framework\TestCase;

class BeruflicheBeziehungTest extends TestCase
{
public function testIsFamiliaer()
{
$beziehung = new BeruflicheBeziehung(1, 'test');
$this->assertFalse($beziehung->isFamiliaer());
}

public function testIsBeruflich()
{
$beziehung = new BeruflicheBeziehung(1, 'test');
$this->assertTrue($beziehung->isBeruflich());
}
}
27 changes: 27 additions & 0 deletions tests/Person/Beziehung/FamiliaereBeziehungTest.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
<?php
/**
* Created by PhpStorm.
* User: alex
* Date: 30.01.17
* Time: 09:51
*/

namespace Demv\Werte\Tests\Person\Beziehung;

use Demv\Werte\Person\Beziehung\Familiaer\FamiliaereBeziehung;
use PHPUnit\Framework\TestCase;

class FamiliaereBeziehungTest extends TestCase
{
public function testIsFamiliaer()
{
$beziehung = new FamiliaereBeziehung(1, 'test');
$this->assertTrue($beziehung->isFamiliaer());
}

public function testIsBeruflich()
{
$beziehung = new FamiliaereBeziehung(1, 'test');
$this->assertFalse($beziehung->isBeruflich());
}
}
2 changes: 0 additions & 2 deletions tests/Person/Beziehung/GegenbeziehungFactoryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,8 @@

class GegenbeziehungFactoryTest extends TestCase
{

public function testCreate()
{
$this->assertInstanceOf(Gegenbeziehung::class, GegenbeziehungFactory::create());
}

}

0 comments on commit aa8eccc

Please sign in to comment.