Gc\Script\ModelTest::testDeleteWithWrongId PHP Method

testDeleteWithWrongId() public method

Test
public testDeleteWithWrongId ( ) : void
return void
    public function testDeleteWithWrongId()
    {
        $configuration = Registry::get('Application')->getConfig();
        if ($configuration['db']['driver'] == 'pdo_mysql') {
            $this->markTestSkipped('Mysql does not thrown exception.');
        }
        $this->setExpectedException('Gc\\Exception');
        $model = new Model();
        $model->setId('undefined');
        $this->assertFalse($model->delete());
    }