Redaxscript\Tests\DbTest::testForTablePrefix PHP Method

testForTablePrefix() public method

testForTablePrefix
Since: 2.2.0
public testForTablePrefix ( )
    public function testForTablePrefix()
    {
        /* actual */
        $actual = Db::forTablePrefix('categories')->where('alias', 'home')->findOne()->alias;
        /* compare */
        $this->assertEquals('home', $actual);
    }