This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- Advanced New File https://marketplace.visualstudio.com/items?itemName=patbenatar.advanced-new-file | |
- Auto Close Tag https://marketplace.visualstudio.com/items?itemName=formulahendry.auto-close-tag | |
- Auto Rename Tag https://marketplace.visualstudio.com/items?itemName=formulahendry.auto-rename-tag | |
- Better PHPUnit https://marketplace.visualstudio.com/items?itemName=calebporzio.better-phpunit | |
- DotENV Syntax highlighting https://marketplace.visualstudio.com/items?itemName=mikestead.dotenv | |
- EditorConfig https://marketplace.visualstudio.com/items?itemName=EditorConfig.EditorConfig | |
- Eslint https://marketplace.visualstudio.com/items?itemName=dbaeumer.vscode-eslint | |
- File utilshttps://marketplace.visualstudio.com/items?itemName=sleistner.vscode-fileutils | |
- Import Cost https://marketplace.visualstudio.com/items?itemName=wix.vscode-import-cost | |
- Material theme https://marketplace.visualstudio.com/items?itemName=Equinusocio.vsc-material-theme |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Providers; | |
use Illuminate\Support\ServiceProvider; | |
use Illuminate\Foundation\Testing\TestResponse; | |
use Illuminate\Http\Request; | |
use Illuminate\Foundation\Testing\Assert as PHPUnit; | |
class AppServiceProvider extends ServiceProvider |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
return PhpCsFixer\Config::create() | |
->setRules([ | |
'psr0' => false, | |
'@PSR2' => true, | |
'array_syntax' => ['syntax' => 'short'], | |
'phpdoc_indent' => true, | |
'cast_spaces' => ['space' => 'single'], | |
'binary_operator_spaces' => [], |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Assert that a model contains an exact set of attributes. | |
* Example: $this->assertModelHasExactAttributes($user, ['email', 'password', 'created_at']); | |
* | |
* @param Illuminate\Database\Eloquent\Model $model | |
* @param array $attributes | |
* @return Illuminate\Foundation\Testing\TestCase | |
*/ | |
public function assertModelHasExactAttributes($model, $attributes = []) | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// tests/JavaScript/ExampleComponent.spec.js | |
import { mount } from 'vue-test-utils'; | |
import expect from 'expect'; | |
import moxios from 'moxios'; | |
import Helpers from 'mwangaben-vthelpers'; | |
import ExampleComponent from '../../resources/assets/js/components/ExampleComponent.vue'; | |
describe ('ExampleComponent', () => { |