Esempio n. 1
0
 public function testStoreSuccess()
 {
     $this->markTestSkipped('Tests requiring authentication are currently broken.');
     Credentials::shouldReceive('getuser')->once()->andReturn((object) ['id' => 1]);
     $this->call('POST', 'pages', ['title' => 'New Page', 'nav_title' => 'Herro', 'slug' => 'foobar', 'icon' => '', 'body' => 'Why herro there!', 'css' => '', 'js' => '', 'show_title' => 'on', 'show_nav' => 'on']);
     $this->assertRedirectedTo('pages/foobar');
     $this->assertSessionHas('success');
 }