Skip to content

Commit 2b968c0

Browse files
author
Jad Joubran
committed
AngularController unit tests
1 parent 27a160e commit 2b968c0

File tree

3 files changed

+29
-17
lines changed

3 files changed

+29
-17
lines changed

gulpfile.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ require('./tasks/angular.task.js');
33
require('./tasks/bower.task.js');
44
require('laravel-elixir-livereload');
55

6-
process.env.DISABLE_NOTIFIER = true;
76

87
/*
98
|--------------------------------------------------------------------------

tests/ExampleTest.php

Lines changed: 0 additions & 16 deletions
This file was deleted.

tests/LaravelRoutesTest.php

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
<?php
2+
3+
class LaravelRoutesTest extends TestCase
4+
{
5+
/**
6+
* A basic functional test example.
7+
*
8+
* @return void
9+
*/
10+
public function testLandingResponseCode()
11+
{
12+
$response = $this->call('GET', '/');
13+
14+
$this->assertEquals(200, $response->status());
15+
}
16+
17+
public function testServeAngular()
18+
{
19+
$this->visit('/')
20+
->see('ng-app');
21+
}
22+
23+
public function testUnsupportedBrowserPage()
24+
{
25+
$this->visit('/unsupported-browser')
26+
->see('update your browser')
27+
->see('Internet Explorer');
28+
}
29+
}

0 commit comments

Comments
 (0)