BlogPostFixture

 Methods

スキーマファイルを探す

findSchemaFile(string $tableName, string $plugin = null) : null | string

Parameters

$tableName

string

テーブル名

$plugin

string

プラグイン名

Returns

nullstring

lib/Baser/Config/Schema以下のスキーマクラスからスキーマを取得

getSchema(string $name) : array

Parameters

$name

string

Model名

Exceptions

\RuntimeException

Returns

array

{@inheritDoc}

init() 

 Properties

 

Name of the object

$name : string

Default

'BlogPost'
 

Records

$records : array

Default

array(array('id' => '1', 'blog_content_id' => '1', 'no' => '1', 'name' => 'name1', 'content' => 'content1', 'blog_category_id' => '1', 'user_id' => '1', 'status' => '1', 'posts_date' => '2017-02-01 12:57:59', 'content_draft' => '', 'detail_draft' => '', 'publish_begin' => null, 'publish_end' => null, 'exclude_search' => 0, 'eye_catch' => '', 'created' => '2017-02-01 12:57:59', 'modified' => '2016-01-02 12:57:59'), array('id' => '2', 'blog_content_id' => '1', 'no' => '2', 'name' => 'name2', 'content' => 'content2', 'blog_category_id' => '2', 'user_id' => '1', 'status' => '1', 'posts_date' => '2016-02-02 12:57:59', 'content_draft' => '', 'detail_draft' => '', 'publish_begin' => null, 'publish_end' => null, 'exclude_search' => 0, 'eye_catch' => '', 'created' => '2016-02-02 12:57:59', 'modified' => '2016-02-02 12:57:59'), array('id' => '3', 'blog_content_id' => '1', 'no' => '1', 'name' => 'name3', 'content' => 'content3', 'blog_category_id' => '3', 'user_id' => '1', 'status' => '1', 'posts_date' => '2016-01-02 12:57:59', 'content_draft' => '', 'detail_draft' => '', 'publish_begin' => null, 'publish_end' => null, 'exclude_search' => 0, 'eye_catch' => '', 'created' => '2016-01-02 12:57:59', 'modified' => '2016-01-02 12:57:59'))