2014-07-05 12:44:26 -05:00
|
|
|
<?php
|
2014-07-06 08:18:11 -05:00
|
|
|
|
|
|
|
class AccountControllerTest extends TestCase
|
|
|
|
{
|
2014-07-05 12:44:26 -05:00
|
|
|
public function setUp()
|
|
|
|
{
|
|
|
|
parent::setUp();
|
|
|
|
}
|
|
|
|
|
|
|
|
public function testCreate()
|
|
|
|
{
|
|
|
|
// mock:
|
2014-07-06 08:18:11 -05:00
|
|
|
View::shouldReceive('share');
|
2014-07-05 12:44:26 -05:00
|
|
|
View::shouldReceive('make')->with('accounts.create');
|
|
|
|
|
|
|
|
// call
|
|
|
|
$this->call('GET', '/accounts/create');
|
|
|
|
|
|
|
|
// test
|
|
|
|
$this->assertResponseOk();
|
|
|
|
}
|
2014-07-06 08:18:11 -05:00
|
|
|
|
|
|
|
public function testShow()
|
|
|
|
{
|
|
|
|
|
|
|
|
// the route filters on accounts using Eloquent, maybe fix that instead?
|
|
|
|
$this->assertTrue(true);
|
|
|
|
}
|
2014-07-05 12:44:26 -05:00
|
|
|
}
|