Exemplo n.º 1
0
 /**
  * @test
  */
 public function it_allows_see_simple_page_without_category_and_topic()
 {
     $page = Page::create(['title' => 'Alpaca is so cool', 'slug' => 'alpaca', 'body' => '<p>...</p>', 'html_title' => '', 'meta_robots' => '', 'meta_description' => '', 'active' => 1]);
     $this->visit('/alpaca')->see($page->title);
 }
 /**
  * Run the migrations.
  *
  * @return void
  */
 public function up()
 {
     Page::create(['title' => 'Frontpage', 'slug' => '', 'body' => '<p>Let us start to create a LaravelCMF...</p>', 'html_title' => '', 'meta_robots' => '', 'meta_description' => '', 'active' => 1]);
 }