Location: PHPKode > projects > LudoDB > ludoDB-master/Tests/AvailableServicesTest.php
<?php
/**
 * Comment pending.
 * User: Alf Magne Kalleland
 * Date: 12.02.13
 * Time: 21:28
 */
require_once(__DIR__."/../autoload.php");

class AvailableServicesTest extends TestBase
{
    /**
     * @test
     */
    public function shouldBeAbleToRegisterService(){
        // given
        LudoDBServiceRegistry::register('Person');

        // when
        $services = LudoDBServiceRegistry::getAll();

        // then
        $this->assertNotNull($services['Person']);
        $this->assertEquals(array('save','delete','read'), $services['Person']);
    }
}
Return current item: LudoDB