Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
Signed-off-by: Mior Muhammad Zaki <[email protected]>
  • Loading branch information
crynobone committed Aug 8, 2023
1 parent 080fbbd commit 5791263
Show file tree
Hide file tree
Showing 10 changed files with 13 additions and 28 deletions.
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
# Ignore following folder/file.
/.github export-ignore
/tests export-ignore
/workbench export-ignore
/.coveralls.yml export-ignore
/.gitattributes export-ignore
/.gitignore export-ignore
Expand Down
7 changes: 5 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@
},
"autoload-dev": {
"psr-4": {
"NovaKit\\NovaOnVapor\\Tests\\": "tests/"
"NovaKit\\NovaOnVapor\\Tests\\": "tests/",
"Workbench\\App\\": "workbench/app/",
"Workbench\\Database\\": "workbench/database/"
}
},
"require": {
Expand All @@ -32,6 +34,7 @@
"nunomaduro/larastan": "^1.0.1 || ^2.4",
"orchestra/canvas": "^6.10.3 || ^7.2.1 || ^8.0",
"orchestra/testbench": "^6.25 || ^7.22 || ^8.0",
"orchestra/testbench-core": "^6.33 || ^7.26 || ^8.6",
"phpunit/phpunit": "^9.6"
},
"repositories": [
Expand Down Expand Up @@ -62,4 +65,4 @@
},
"prefer-stable": true,
"minimum-stability": "dev"
}
}
1 change: 1 addition & 0 deletions phpunit.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,6 @@
<env name="APP_ENV" value="testing"/>
<env name="APP_KEY" value="AckfSECXIvnK5r28GVIWUAxmbBSjTsmF"/>
<env name="DB_CONNECTION" value="testing"/>
<env name="SEND_QUERIES_TO_RAY" value="(false)"/>
</php>
</phpunit>
2 changes: 1 addition & 1 deletion testbench.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
providers:
- NovaKit\NovaOnVapor\LaravelServiceProvider
- NovaKit\NovaOnVapor\Tests\NovaServiceProvider
- Workbench\App\Providers\NovaServiceProvider

env:
- SEND_QUERIES_TO_RAY=false
28 changes: 4 additions & 24 deletions tests/TestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,36 +2,16 @@

namespace NovaKit\NovaOnVapor\Tests;

use Orchestra\Testbench\Concerns\WithWorkbench;

class TestCase extends \Orchestra\Testbench\TestCase
{
use WithWorkbench;

/**
* Automatically enables package discoveries.
*
* @var bool
*/
protected $enablesPackageDiscoveries = true;

/**
* Get package providers.
*
* @param \Illuminate\Foundation\Application $app
* @return array
*/
protected function getPackageProviders($app)
{
return [
\NovaKit\NovaOnVapor\LaravelServiceProvider::class,
\NovaKit\NovaOnVapor\Tests\NovaServiceProvider::class,
];
}

/**
* Ignore package discovery from.
*
* @return array
*/
public function ignorePackageDiscoveriesFrom()
{
return [];
}
}
Empty file added workbench/app/.gitkeep
Empty file.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace NovaKit\NovaOnVapor\Tests;
namespace Workbench\App\Providers;

use Illuminate\Support\Facades\Gate;
use Laravel\Nova\Nova;
Expand Down
Empty file.
Empty file.
Empty file.

0 comments on commit 5791263

Please sign in to comment.