Skip to content

Commit 0495416

Browse files
2 parents b5aab98 + d42af0a commit 0495416

File tree

6 files changed

+23
-4
lines changed

6 files changed

+23
-4
lines changed

.travis.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
language: php
22

33
php:
4-
- 5.6
54
- 7.0
65
- hhvm
76

database/.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +0,0 @@
1-
*.sqlite

database/database.sqlite

12 KB
Binary file not shown.

phpunit.xml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,9 @@
2020
</filter>
2121
<php>
2222
<env name="APP_ENV" value="testing"/>
23-
<env name="CACHE_DRIVER" value="array"/>
24-
<env name="SESSION_DRIVER" value="array"/>
23+
<env name="CACHE_DRIVER" value="file"/>
24+
<env name="DB_CONNECTION" value="sqlite" />
25+
<env name="SESSION_DRIVER" value="file"/>
2526
<env name="QUEUE_DRIVER" value="sync"/>
2627
</php>
2728
</phpunit>

readme.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -626,6 +626,9 @@ Thank you for considering contributing to Laravel Hackathon Starter. The contrib
626626

627627
If you discover a security vulnerability within Laravel Hackathon Starter, please send an e-mail to Prosper Otemuyiwa at [email protected]. All security vulnerabilities will be promptly addressed.
628628

629+
## Credits
630+
* [Sahat Yalkabov](https://github.com/sahat/hackathon-starter) - Awesome
631+
629632
## How can I thank you?
630633

631634
Why not star the github repo? I'd love the attention! Why not share the link for this repository on Twitter or HackerNews? Spread the word!

tests/TestCase.php

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,23 @@ class TestCase extends Illuminate\Foundation\Testing\TestCase
99
*/
1010
protected $baseUrl = 'http://localhost';
1111

12+
/**
13+
* Creates the application.
14+
*
15+
* @return \Illuminate\Foundation\Application
16+
*/
17+
public function setUp()
18+
{
19+
parent::setUp();
20+
$this->prepareForTests();
21+
}
22+
23+
public function prepareForTests()
24+
{
25+
Config::set('database.default', 'sqlite');
26+
Artisan::call('migrate:refresh');
27+
}
28+
1229
/**
1330
* Creates the application.
1431
*

0 commit comments

Comments
 (0)