Skip to content

Commit

Permalink
Merge branch 'feature/upgrade-to-lunar-api-1.0.0-beta.1' of github.co…
Browse files Browse the repository at this point in the history
…m:dystcz/lunar-api-reviews into feature/upgrade-to-lunar-api-1.0.0-beta.1
  • Loading branch information
repl6669 committed Oct 14, 2024
2 parents b7c1758 + 1211cf4 commit 79be7ec
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 9 deletions.
8 changes: 2 additions & 6 deletions src/Domain/Hub/Components/Slots/ReviewsSlot.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,7 @@ public function getSlotHandle(): string
return 'reviews-slot';
}

public function getSlotInitialValue(): void
{
}
public function getSlotInitialValue(): void {}

public function getSlotPosition(): string
{
Expand All @@ -40,9 +38,7 @@ public function getSlotTitle(): string
return 'Reviews';
}

public function updateSlotModel(): void
{
}
public function updateSlotModel(): void {}

public function handleSlotSave($model, $data): void
{
Expand Down
6 changes: 3 additions & 3 deletions tests/Unit/RegistersDynamicRelastionsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,19 +10,19 @@
uses(TestCase::class, RefreshDatabase::class);

test('product has reviews relation', function () {
$model = new Product();
$model = new Product;

expect($model->reviews())->toBeInstanceOf(MorphMany::class);
});

test('product has variantReviews relation', function () {
$model = new Product();
$model = new Product;

expect($model->variantReviews())->toBeInstanceOf(HasManyThrough::class);
});

test('product variant has reviews relation', function () {
$model = new ProductVariant();
$model = new ProductVariant;

expect($model->reviews())->toBeInstanceOf(MorphMany::class);
});

0 comments on commit 79be7ec

Please sign in to comment.