-
Notifications
You must be signed in to change notification settings - Fork 0
/
GaugeTest.php
45 lines (30 loc) · 1.09 KB
/
GaugeTest.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
<?php
use StarfolkSoftware\Gauge\Gauge;
it('can disable migrations', function () {
Gauge::ignoreMigrations();
expect(Gauge::$runsMigrations)->toBeFalse();
});
it('can update review model', function () {
Gauge::useReviewModel('App\\Models\\ReviewTestModel');
expect(Gauge::$reviewModel)->toBe('App\\Models\\ReviewTestModel');
});
it('can update user model', function () {
Gauge::useUserModel('App\\Models\\UserTestModel');
expect(Gauge::$userModel)->toBe('App\\Models\\UserTestModel');
});
it('can update review table name', function () {
Gauge::useReviewsTableName('reviews_table');
expect(Gauge::$reviewsTableName)->toBe('reviews_table');
});
it('can turn on support for soft delete', function () {
Gauge::supportsSoftDeletes();
expect(Gauge::$supportsSoftDeletes)->toBeTrue();
});
it('can turn on support for single reviews', function () {
Gauge::supportsSingleReviews();
expect(Gauge::$supportsSingleReviews)->toBeTrue();
});
it('can turn on support for teams', function () {
Gauge::supportsTeams();
expect(Gauge::$supportsTeams)->toBeTrue();
});