Trait luya\testsuite\traits\CmsDatabaseTableTrait

Uses Traitsluya\testsuite\traits\AdminDatabaseTableTrait
Implemented byluya\testsuite\components\DummyMenu, luya\testsuite\scopes\PageScope
Available since version1.0.21
Source Code https://github.com/luyadev/luya-testsuite/blob/master/src/traits/CmsDatabaseTableTrait.php

A trait to make it easier to work with database tables and LUYA admin permission.

Public Methods

Hide inherited methods

Method Description Defined By
createCmsBlockFixture() Create Cms Block Fixture luya\testsuite\traits\CmsDatabaseTableTrait
createCmsBlockGroupFixture() Create Cms Block Group Fixture luya\testsuite\traits\CmsDatabaseTableTrait
createCmsLayoutFixture() Create Cms Layout Fixture luya\testsuite\traits\CmsDatabaseTableTrait
createCmsLog() Create Cms Log Fixture luya\testsuite\traits\CmsDatabaseTableTrait
createCmsNavContainerFixture() Create Cms Nav Container Fixture luya\testsuite\traits\CmsDatabaseTableTrait
createCmsNavFixture() Create Cms Nav Fixture luya\testsuite\traits\CmsDatabaseTableTrait
createCmsNavItemFixture() Create Cms Nav Item Fixture luya\testsuite\traits\CmsDatabaseTableTrait
createCmsNavItemModuleFixture() Create Cms Nav Item Module Fixture luya\testsuite\traits\CmsDatabaseTableTrait
createCmsNavItemPageBlockItemFixture() Create Cms Nav Item Page Block Item Fixture luya\testsuite\traits\CmsDatabaseTableTrait
createCmsNavItemPageFixture() Create Cms Nav Item Page Fixture luya\testsuite\traits\CmsDatabaseTableTrait
createCmsNavItemRedirectFixture() Create Cms Nav Item Redirect Fixture luya\testsuite\traits\CmsDatabaseTableTrait
createCmsNavPermissionFixture() Create Cms Nav Permissions Fixture luya\testsuite\traits\CmsDatabaseTableTrait
createCmsPropertyFixture() Create Cms Property Fixture luya\testsuite\traits\CmsDatabaseTableTrait
createCmsRedirectFixture() Create Cms Redirect Fixture luya\testsuite\traits\CmsDatabaseTableTrait
createCmsWebsiteFixture() Create Cms Website Fixture luya\testsuite\traits\CmsDatabaseTableTrait

Method Details

Hide inherited methods

createCmsBlockFixture() public method

Create Cms Block Fixture

public luya\testsuite\fixtures\ActiveRecordFixture createCmsBlockFixture ( array $fixtureData = [] )
$fixtureData array

                public function createCmsBlockFixture(array $fixtureData = [])
{
    return new NgRestModelFixture([
        'modelClass' => Block::class,
        'fixtureData' => $fixtureData,
    ]);
}

            
createCmsBlockGroupFixture() public method

Create Cms Block Group Fixture

public luya\testsuite\fixtures\ActiveRecordFixture createCmsBlockGroupFixture ( array $fixtureData = [] )
$fixtureData array

                public function createCmsBlockGroupFixture(array $fixtureData = [])
{
    return new NgRestModelFixture([
        'modelClass' => BlockGroup::class,
        'fixtureData' => $fixtureData,
    ]);
}

            
createCmsLayoutFixture() public method

Create Cms Layout Fixture

public luya\testsuite\fixtures\ActiveRecordFixture createCmsLayoutFixture ( array $fixtureData = [] )
$fixtureData array

                public function createCmsLayoutFixture(array $fixtureData = [])
{
    return new NgRestModelFixture([
        'modelClass' => Layout::class,
        'fixtureData' => $fixtureData,
    ]);
}

            
createCmsLog() public method

Create Cms Log Fixture

public luya\testsuite\fixtures\ActiveRecordFixture createCmsLog ( array $fixtureData = [] )
$fixtureData array

                public function createCmsLog(array $fixtureData = [])
{
    return new ActiveRecordFixture([
        'modelClass' => Log::class,
        'fixtureData' => $fixtureData,
    ]);
}

            
createCmsNavContainerFixture() public method

Create Cms Nav Container Fixture

public luya\testsuite\fixtures\ActiveRecordFixture createCmsNavContainerFixture ( array $fixtureData = [] )
$fixtureData array

                public function createCmsNavContainerFixture(array $fixtureData = [])
{
    return new NgRestModelFixture([
        'modelClass' => NavContainer::class,
        'fixtureData' => $fixtureData,
    ]);
}

            
createCmsNavFixture() public method

Create Cms Nav Fixture

public luya\testsuite\fixtures\ActiveRecordFixture createCmsNavFixture ( array $fixtureData = [] )
$fixtureData array

                public function createCmsNavFixture(array $fixtureData = [])
{
    return new ActiveRecordFixture([
        'modelClass' => Nav::class,
        'fixtureData' => $fixtureData
    ]);
}

            
createCmsNavItemFixture() public method

Create Cms Nav Item Fixture

public luya\testsuite\fixtures\ActiveRecordFixture createCmsNavItemFixture ( array $fixtureData = [] )
$fixtureData array

                public function createCmsNavItemFixture(array $fixtureData = [])
{
    return new ActiveRecordFixture([
        'modelClass' => NavItem::class,
        'fixtureData' => $fixtureData
    ]);
}

            
createCmsNavItemModuleFixture() public method

Create Cms Nav Item Module Fixture

public luya\testsuite\fixtures\ActiveRecordFixture createCmsNavItemModuleFixture ( array $fixtureData = [] )
$fixtureData array

                public function createCmsNavItemModuleFixture(array $fixtureData = [])
{
    return new ActiveRecordFixture([
        'modelClass' => NavItemModule::class,
        'fixtureData' => $fixtureData,
    ]);
}

            
createCmsNavItemPageBlockItemFixture() public method

Create Cms Nav Item Page Block Item Fixture

public luya\testsuite\fixtures\ActiveRecordFixture createCmsNavItemPageBlockItemFixture ( array $fixtureData = [] )
$fixtureData array

                public function createCmsNavItemPageBlockItemFixture(array $fixtureData = [])
{
    return new ActiveRecordFixture([
        'modelClass' => NavItemPageBlockItem::class,
        'fixtureData' => $fixtureData,
    ]);
}

            
createCmsNavItemPageFixture() public method

Create Cms Nav Item Page Fixture

public luya\testsuite\fixtures\ActiveRecordFixture createCmsNavItemPageFixture ( array $fixtureData = [] )
$fixtureData array

                public function createCmsNavItemPageFixture(array $fixtureData = [])
{
    return new ActiveRecordFixture([
        'modelClass' => NavItemPage::class,
        'fixtureData' => $fixtureData,
    ]);
}

            
createCmsNavItemRedirectFixture() public method

Create Cms Nav Item Redirect Fixture

public luya\testsuite\fixtures\ActiveRecordFixture createCmsNavItemRedirectFixture ( array $fixtureData = [] )
$fixtureData array

                public function createCmsNavItemRedirectFixture(array $fixtureData = [])
{
    return new ActiveRecordFixture([
        'modelClass' => NavItemRedirect::class,
        'fixtureData' => $fixtureData,
    ]);
}

            
createCmsNavPermissionFixture() public method

Create Cms Nav Permissions Fixture

public luya\testsuite\fixtures\ActiveRecordFixture createCmsNavPermissionFixture ( array $fixtureData = [] )
$fixtureData array

                public function createCmsNavPermissionFixture(array $fixtureData = [])
{
    return new ActiveRecordFixture([
        'modelClass' => NavPermission::class,
        'fixtureData' => $fixtureData,
    ]);
}

            
createCmsPropertyFixture() public method

Create Cms Property Fixture

public luya\testsuite\fixtures\ActiveRecordFixture createCmsPropertyFixture ( array $fixtureData = [] )
$fixtureData array

                public function createCmsPropertyFixture(array $fixtureData = [])
{
    return new ActiveRecordFixture([
        'modelClass' => Property::class,
        'fixtureData' => $fixtureData,
    ]);
}

            
createCmsRedirectFixture() public method

Create Cms Redirect Fixture

public luya\testsuite\fixtures\ActiveRecordFixture createCmsRedirectFixture ( array $fixtureData = [] )
$fixtureData array

                public function createCmsRedirectFixture(array $fixtureData = [])
{
    return new NgRestModelFixture([
        'modelClass' => Redirect::class,
        'fixtureData' => $fixtureData,
    ]);
}

            
createCmsWebsiteFixture() public method

Create Cms Website Fixture

public luya\testsuite\fixtures\ActiveRecordFixture createCmsWebsiteFixture ( array $fixtureData = [] )
$fixtureData array

                public function createCmsWebsiteFixture(array $fixtureData = [])
{
    return new NgRestModelFixture([
        'modelClass' => Website::class,
        'fixtureData' => $fixtureData,
    ]);
}