CRUDlexTests\MySQLDataTest::testCreateWithUUID PHP Method

testCreateWithUUID() public method

public testCreateWithUUID ( )
    public function testCreateWithUUID()
    {
        $crudServiceProvider = TestDBSetup::createServiceProvider(true);
        $dataLibrary = $crudServiceProvider->getData('library');
        $entity = $dataLibrary->createEmpty();
        $entity->set('name', 'name');
        $dataLibrary->create($entity);
        $id = $entity->get('id');
        $this->assertNotNull($id);
        $this->assertTrue(strlen($id) == 36);
        $this->setUp();
    }