Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix/install error #157

Merged
merged 3 commits into from
Aug 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,18 @@ You may use composer to install Aranguent:

``` composer require laravel-freelancer-nl/aranguent ```

While this driver is in the beta stage, changes are you will get a type error upon installation.

composer.json will probably not list a specific version:
```"laravel-freelancer-nl/aranguent": "*"```

If so, either set the minimum-stability level to 'dev' or install the latest version:
```
composer require laravel-freelancer-nl/aranguent:v1.0.0-beta.8 laravel-freelancer-nl/fluentaql:2.1.1
```
This updates the package to the latest beta, and properly installs the fluentaql package as well.


### Version compatibility
| Laravel | ArangoDB | PHP | Aranguent |
|:--------------|:---------|:-----|:----------|
Expand Down
4 changes: 2 additions & 2 deletions tests/Console/MigrateFreshCommandTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
])->assertExitCode(0);

$collections = $this->schemaManager->getCollections(true);
expect(count($collections))->toBe(16);
expect(count($collections))->toBe($this->tableCount);
});

test('migrate:fresh --database=arangodb', function () {
Expand All @@ -46,7 +46,7 @@
])->assertExitCode(0);

$collections = $this->schemaManager->getCollections(true);
expect(count($collections))->toBe(16);
expect(count($collections))->toBe($this->tableCount);
});

test('migrate:fresh --database=none', function () {
Expand Down
4 changes: 2 additions & 2 deletions tests/Console/MigrateRefreshCommandTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
])->assertExitCode(0);

$collections = $this->schemaManager->getCollections(true);
expect(count($collections))->toBe(16);
expect(count($collections))->toBe($this->tableCount);
});

test('migrate:refresh --database=arangodb', function () {
Expand All @@ -45,7 +45,7 @@
])->assertExitCode(0);

$collections = $this->schemaManager->getCollections(true);
expect(count($collections))->toBe(16);
expect(count($collections))->toBe($this->tableCount);
});

test('migrate:refresh --database=none', function () {
Expand Down
2 changes: 1 addition & 1 deletion tests/Query/JoinTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
$characters = $builder->get();

expect($characters)->toHaveCount(7);
expect($characters[0]->age)->toEqual(16);
expect($characters[0]->age)->toEqual($this->tableCount);
expect($characters[0]->surname)->toEqual('Targaryen');
});

Expand Down
2 changes: 1 addition & 1 deletion tests/Schema/SchemaBuilderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@

$tables = Schema::getAllTables();

expect(count($initialTables))->toEqual(16);
expect(count($initialTables))->toEqual($this->tableCount);
expect(count($tables))->toEqual(0);

$this->artisan('migrate:install')->assertExitCode(0);
Expand Down
2 changes: 1 addition & 1 deletion tests/Schema/TableTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@

$tables = Schema::getAllTables();

expect(count($initialTables))->toEqual(16);
expect(count($initialTables))->toEqual($this->tableCount);
expect(count($tables))->toEqual(0);

refreshDatabase();
Expand Down
2 changes: 2 additions & 0 deletions tests/TestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ class TestCase extends \Orchestra\Testbench\TestCase

protected string $seeder = DatabaseSeeder::class;

protected int $tableCount = 16;

/**
* The base URL to use while testing the application.
*
Expand Down
2 changes: 1 addition & 1 deletion tests/Testing/DatabaseTruncationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
test('Ensure all tables are present', function () {
$tables = Schema::getAllTables();

expect(count($tables))->toEqual(16);
expect(count($tables))->toEqual($this->tableCount);
});


Expand Down
Loading