Skip to content

Conversation

@KonstantinLapkovsky
Copy link
Contributor

Issue #49

@KonstantinLapkovsky KonstantinLapkovsky changed the base branch from master to 49-cover-entity-generator-with-tests December 21, 2023 17:05
…to 49-add-repository-generator-tests

# Conflicts:
#	phpunit.xml
#	tests/FactoryGeneratorTest.php
#	tests/Support/NovaTest/NovaTestMockTrait.php
…into 49-add-repository-generator-tests

# Conflicts:
#	tests/Support/NovaTest/NovaTestMockTrait.php
…to 49-add-repository-generator-tests

# Conflicts:
#	tests/Support/NovaTest/NovaTestMockTrait.php
@pirs1337 pirs1337 changed the base branch from 49-cover-entity-generator-with-tests to master December 19, 2024 12:05
@pirs1337 pirs1337 assigned DenTray and unassigned pirs1337 Dec 19, 2024
@DenTray
Copy link
Collaborator

DenTray commented Dec 23, 2024

@pirs1337 please assign this one after merging model generation test

@DenTray DenTray assigned pirs1337 and unassigned DenTray Dec 23, 2024
Copy link
Collaborator

@DenTray DenTray left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@pirs1337 let's make review after model test will me merged and master branch will be merged into this one


$this->assertExceptionThrew(
className: ClassNotExistsException::class,
message: "Cannot create Post Model cause Post Model does not exists. "
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please check exception message, seems we need to throw next text

Suggested change
message: "Cannot create Post Model cause Post Model does not exists. "
message: "Cannot create PostRepository cause Post Model does not exists. "


trait RepositoryMockTrait
{
use GeneratorMockTrait, MockTrait;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

could GeneratorMockTrait use MockTrait directly?

@pirs1337 pirs1337 assigned DenTray and unassigned pirs1337 Jan 16, 2025
@DenTray DenTray merged commit 7230314 into master Jan 16, 2025
2 checks passed
@DenTray DenTray deleted the 49-add-repository-generator-tests branch July 8, 2025 08:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants