CRUDlexTests\EntityTest::testGetRaw PHP Method

testGetRaw() public method

public testGetRaw ( )
    public function testGetRaw()
    {
        $definition = $this->crudServiceProvider->getData('book')->getDefinition();
        $entity = new Entity($definition);
        $entity->set('test', 'testdata');
        $read = $entity->getRaw('test');
        $expected = 'testdata';
        $this->assertSame($expected, $read);
        $read = $entity->getRaw('test2');
        $this->assertNull($read);
    }