Skip to content
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
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Tempest's database component is currently experimental and is not covered by our

## Connecting to a database

By default, Tempest will connect to a local SQLite database located in its internal storage, `vendor/.tempest/database.sqlite`. You may override the default database connection by creating a [configuration file](../1-essentials/06-configuration.md#configuration-files):
By default, Tempest will connect to a local SQLite database located in its internal storage, `.tempest/database.sqlite`. You may override the default database connection by creating a [configuration file](../1-essentials/06-configuration.md#configuration-files):

```php src/Config/database.config.php
use Tempest\Database\Config\SQLiteConfig;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ $storage = $this->storage->fake(StorageLocation::DATA_SNAPSHOTS);
$storage->assertFileExists('file.txt');
```

These fake storages are located in `vendor/.tempest/tests/storage`. They get erased every time the `fake()` method is called. To prevent this, you may set the `persist` argument to `true`.
These fake storages are located in `.tempest/tests/storage`. They get erased every time the `fake()` method is called. To prevent this, you may set the `persist` argument to `true`.

### Preventing storage access during tests

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Tempest's database component is currently experimental and is not covered by our

## Connecting to a database

By default, Tempest will connect to a local SQLite database located in its internal storage, `vendor/.tempest/database.sqlite`. You may override the default database connection by creating a [configuration file](../1-essentials/06-configuration.md#configuration-files):
By default, Tempest will connect to a local SQLite database located in its internal storage, `.tempest/database.sqlite`. You may override the default database connection by creating a [configuration file](../1-essentials/06-configuration.md#configuration-files):

```php src/Config/database.config.php
use Tempest\Database\Config\SQLiteConfig;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ $storage = $this->storage->fake(StorageLocation::DATA_SNAPSHOTS);
$storage->assertFileExists('file.txt');
```

These fake storages are located in `vendor/.tempest/tests/storage`. They get erased every time the `fake()` method is called. To prevent this, you may set the `persist` argument to `true`.
These fake storages are located in `.tempest/tests/storage`. They get erased every time the `fake()` method is called. To prevent this, you may set the `persist` argument to `true`.

### Preventing storage access during tests

Expand Down
Loading