Trait luya\testsuite\traits\CmsDatabaseTableTrait
Uses Traits | luya\testsuite\traits\AdminDatabaseTableTrait |
---|---|
Implemented by | luya\testsuite\components\DummyMenu, luya\testsuite\scopes\PageScope |
Available since version | 1.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
Method Details
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,
]);
}
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,
]);
}
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,
]);
}
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,
]);
}
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,
]);
}
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,
]);
}
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,
]);
}