Skip to content

Commit

Permalink
Merge branch '7.x' into 8.x
Browse files Browse the repository at this point in the history
# Conflicts:
#	composer.json
  • Loading branch information
crynobone committed Sep 13, 2023
2 parents 4e7d2fd + 1b0dd37 commit a812ca2
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 1 deletion.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
"phpunit/phpunit": "^10.1"
},
"conflict": {
"orchestra/canvas": "<8.6.0",
"orchestra/canvas": "<8.8.0",
"orchestra/testbench-core": "<8.2.0"
},
"config": {
Expand Down
8 changes: 8 additions & 0 deletions src/Presets/Laravel.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,14 @@ public function rootNamespace(): string
return $this->config['namespace'] ?? 'App';
}

/**
* Testing namespace.
*/
public function testingNamespace(): string
{
return $this->config('testing.namespace', 'Tests');
}

/**
* Model namespace.
*/
Expand Down
8 changes: 8 additions & 0 deletions src/Presets/Package.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,14 @@ public function rootNamespace(): string
return $namespace;
}

/**
* Testing namespace.
*/
public function testingNamespace(): string
{
return $this->config('testing.namespace', $this->rootNamespace().'\Tests');
}

/**
* Model namespace.
*/
Expand Down
5 changes: 5 additions & 0 deletions src/Presets/Preset.php
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,11 @@ abstract public function sourcePath(): string;
*/
abstract public function rootNamespace(): string;

/**
* Testing namespace.
*/
abstract public function testingNamespace(): string;

/**
* Model namespace.
*/
Expand Down

0 comments on commit a812ca2

Please sign in to comment.