| 1 |
<?php |
| 2 |
|
| 3 |
namespace QuadLayers\WP_Orm\Tests\Collection\Entity; |
| 4 |
|
| 5 |
use PHPUnit\Framework\TestCase; |
| 6 |
use QuadLayers\WP_Orm\Tests\Collection\CollectionEntityTest; |
| 7 |
|
| 8 |
class CollectionTest extends TestCase |
| 9 |
{ |
| 10 |
public function testGettersAndSetters() |
| 11 |
{ |
| 12 |
|
| 13 |
$entity = new CollectionEntityTest(); |
| 14 |
|
| 15 |
$testValue = $entity->getDefaults(); |
| 16 |
|
| 17 |
$this->assertEquals($testValue['key1'], $entity->getKey1()); |
| 18 |
$this->assertEquals($testValue['key2'], $entity->getKey2()); |
| 19 |
} |
| 20 |
} |
| 21 |
|