Skip to content

Commit 5263d0c

Browse files
author
Andrew Drake
committed
Updated namespace and tests
1 parent 7a91825 commit 5263d0c

File tree

7 files changed

+18
-16
lines changed

7 files changed

+18
-16
lines changed

LICENSE.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
The MIT License (MIT)
22

3-
Copyright (c) Venturedrake
3+
Copyright (c) VentureDrake
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ composer require venturedrake/laravel-encryptable
1818

1919
You can publish the config file with:
2020
```bash
21-
php artisan vendor:publish --provider="Venturedrake\LaravelEncryptable\LaravelEncryptableServiceProvider" --tag="config"
21+
php artisan vendor:publish --provider="VentureDrake\LaravelEncryptable\LaravelEncryptableServiceProvider" --tag="config"
2222
```
2323

2424
## Usage

composer.json

+6-6
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,13 @@
2626
},
2727
"autoload": {
2828
"psr-4": {
29-
"Venturedrake\\LaravelEncryptable\\": "src",
30-
"Venturedrake\\LaravelEncryptable\\Database\\Factories\\": "database/factories"
29+
"VentureDrake\\LaravelEncryptable\\": "src",
30+
"VentureDrake\\LaravelEncryptable\\Database\\Factories\\": "database/factories"
3131
}
3232
},
3333
"autoload-dev": {
3434
"psr-4": {
35-
"Venturedrake\\LaravelEncryptable\\Tests\\": "tests"
35+
"VentureDrake\\LaravelEncryptable\\Tests\\": "tests"
3636
}
3737
},
3838
"scripts": {
@@ -47,11 +47,11 @@
4747
"extra": {
4848
"laravel": {
4949
"providers": [
50-
"Venturedrake\\LaravelEncryptable\\LaravelEncryptableServiceProvider"
50+
"VentureDrake\\LaravelEncryptable\\LaravelEncryptableServiceProvider"
5151
],
5252
"aliases": {
53-
"LaravelEncryptable": "Venturedrake\\LaravelEncryptable\\LaravelEncryptableFacade",
54-
"Encryptable": "Venturedrake\\LaravelEncryptable\\Traits\\EncryptableTrait"
53+
"LaravelEncryptable": "VentureDrake\\LaravelEncryptable\\LaravelEncryptableFacade",
54+
"Encryptable": "VentureDrake\\LaravelEncryptable\\Traits\\EncryptableTrait"
5555
}
5656
}
5757
},

database/factories/ModelFactory.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
namespace Venturedrake\LaravelEncryptable\Database\Factories;
3+
namespace VentureDrake\LaravelEncryptable\Database\Factories;
44

55
use Illuminate\Database\Eloquent\Factories\Factory;
66

phpunit.xml.dist

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
verbose="true"
1212
>
1313
<testsuites>
14-
<testsuite name="Venturedrake Test Suite">
14+
<testsuite name="VentureDrake Test Suite">
1515
<directory>tests</directory>
1616
</testsuite>
1717
</testsuites>

tests/ExampleTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
namespace Venturedrake\LaravelEncryptable\Tests;
3+
namespace VentureDrake\LaravelEncryptable\Tests;
44

55
class ExampleTest extends TestCase
66
{

tests/TestCase.php

+7-5
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,22 @@
11
<?php
22

3-
namespace Venturedrake\LaravelEncryptable\Tests;
3+
namespace VentureDrake\LaravelEncryptable\Tests;
44

55
use Illuminate\Database\Eloquent\Factories\Factory;
66
use Orchestra\Testbench\TestCase as Orchestra;
7-
use Venturedrake\LaravelEncryptable\LaravelEncryptableServiceProvider;
7+
use VentureDrake\LaravelEncryptable\LaravelEncryptableServiceProvider;
88

99
class TestCase extends Orchestra
1010
{
1111
public function setUp(): void
1212
{
1313
parent::setUp();
1414

15-
Factory::guessFactoryNamesUsing(
16-
fn (string $modelName) => 'Venturedrake\\LaravelEncryptable\\Database\\Factories\\'.class_basename($modelName).'Factory'
17-
);
15+
/*Factory::guessFactoryNamesUsing(
16+
function (string $modelName) {
17+
return 'VentureDrake\\LaravelEncryptable\\Database\\Factories\\' . class_basename($modelName) . 'Factory';
18+
}
19+
);*/
1820
}
1921

2022
protected function getPackageProviders($app)

0 commit comments

Comments
 (0)