public function testRender() { Request::shouldReceive('url')->once()->andReturn('fooBar'); View::shouldReceive('make')->once()->with('datatable::template', array('options' => array('sAjaxSource' => 'fooBar', 'bServerSide' => true, 'sPaginationType' => 'full_numbers', 'bProcessing' => false), 'callbacks' => array(), 'values' => array(), 'data' => array(), 'columns' => array(1 => 'foo'), 'noScript' => false, 'class' => $this->table->getClass(), 'id' => $this->table->getId()))->andReturn(true); $table1 = $this->table->addColumn('foo')->render(); $this->assertTrue($table1); }
/** * @test **/ public function it_showSuccessSignup_ifEmailConfirmationIsDisabled() { $active = false; $this->mockConfigGetEmailConfirmation($active); \View::shouldReceive('make')->once()->with('laravel-authentication-acl::client.auth.signup-success'); $this->action('GET', 'Jacopo\\Authentication\\Controllers\\UserController@signupSuccess'); }
/** * A basic test example. * * @return void */ public function testSystemEdit() { View::shouldReceive('make')->once()->with('settings.system', [], []); $edit = new SettingsController(); $edit->edit('system'); }