From 5528663727d80cd6f47e9e270ffeadf02c00460c Mon Sep 17 00:00:00 2001 From: James Cole Date: Sun, 12 Feb 2017 11:25:17 +0100 Subject: [PATCH] Re-implemented basic account controller tests. --- phpunit.coverage.xml | 9 +- phpunit.xml | 9 +- .../Controllers/AccountControllerTest.php | 213 ++++++++++++++++++ tests/Feature/ExampleTest.php | 21 +- tests/TestCase.php | 77 ++++++- 5 files changed, 319 insertions(+), 10 deletions(-) create mode 100644 tests/Feature/Controllers/AccountControllerTest.php diff --git a/phpunit.coverage.xml b/phpunit.coverage.xml index 75e3afd143..d643a5d6ec 100755 --- a/phpunit.coverage.xml +++ b/phpunit.coverage.xml @@ -10,11 +10,12 @@ beStrictAboutOutputDuringTests="true" stopOnFailure="true"> - - ./tests/acceptance + + ./tests/Feature - - ./tests/unit + + + ./tests/Unit diff --git a/phpunit.xml b/phpunit.xml index c096c7a945..b0e315533c 100755 --- a/phpunit.xml +++ b/phpunit.xml @@ -10,11 +10,12 @@ beStrictAboutOutputDuringTests="true" stopOnFailure="true"> - - ./tests/acceptance + + ./tests/Feature - - ./tests/unit + + + ./tests/Unit diff --git a/tests/Feature/Controllers/AccountControllerTest.php b/tests/Feature/Controllers/AccountControllerTest.php new file mode 100644 index 0000000000..37c9b79740 --- /dev/null +++ b/tests/Feature/Controllers/AccountControllerTest.php @@ -0,0 +1,213 @@ +be($this->user()); + $response = $this->get(route('accounts.create', ['asset'])); + $response->assertStatus(200); + // has bread crumb + $response->assertSee('