Skip to content

Commit d9279bf

Browse files
author
Jad Joubran
committed
added basic test for artisan ng:* generators #42
1 parent f2ecb0b commit d9279bf

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
<?php
2+
3+
class AngularGeneratorCommandsTest extends TestCase
4+
{
5+
public function testNgGeneratorsExist()
6+
{
7+
$exitCode = Artisan::call('list');
8+
$output = Artisan::output();
9+
10+
$this->assertEquals($exitCode, 0);
11+
12+
$this->assertContains('ng:feature', $output);
13+
$this->assertContains('ng:dialog', $output);
14+
$this->assertContains('ng:directive', $output);
15+
$this->assertContains('ng:service', $output);
16+
$this->assertContains('ng:filter', $output);
17+
$this->assertContains('ng:config', $output);
18+
}
19+
20+
}

0 commit comments

Comments
 (0)