Skip to content

Conversation

@KonstantinLapkovsky
Copy link
Contributor

Issue #49

@KonstantinLapkovsky KonstantinLapkovsky self-assigned this Dec 20, 2023
@KonstantinLapkovsky KonstantinLapkovsky changed the base branch from master to 49-cover-entity-generator-with-tests December 20, 2023 18:21
# Conflicts:
#	phpunit.xml
#	tests/Support/NovaTestMockTrait.php
@KonstantinLapkovsky KonstantinLapkovsky changed the base branch from 49-cover-entity-generator-with-tests to master January 17, 2024 12:13
@KonstantinLapkovsky KonstantinLapkovsky changed the base branch from master to 49-cover-entity-generator-with-tests January 17, 2024 12:13
@AZabolotnikov AZabolotnikov self-assigned this Nov 20, 2024
@AZabolotnikov AZabolotnikov changed the base branch from 49-cover-entity-generator-with-tests to master November 20, 2024 09:17
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.

let's return to this after factory pull request will be mnerged

@pirs1337 pirs1337 assigned pirs1337 and unassigned AZabolotnikov Dec 6, 2024
@pirs1337 pirs1337 assigned DenTray and unassigned pirs1337 Dec 6, 2024
}

throw new Exception('Unknown fieldType in MigrationGenerator');
throw new UnknownFieldTypeException("Unknown field type {$typeName} in MigrationGenerator.");
Copy link
Collaborator

Choose a reason for hiding this comment

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

let's move message generation into the exception class

Suggested change
throw new UnknownFieldTypeException("Unknown field type {$typeName} in MigrationGenerator.");
throw new UnknownFieldTypeException($typeName, 'MigrationGenerator');

Comment on lines 19 to 20
$this->expectException(UnknownFieldTypeException::class);
$this->expectExceptionMessage('Unknown field type unknown-type in MigrationGenerator.');
Copy link
Collaborator

Choose a reason for hiding this comment

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

please use assertExceptionThrew helper

$this->assertGeneratedFileEquals('migrations.php', 'database/migrations/2022_02_02_000000_posts_create_table.php');
}

public function testMethodForMYSQLConnection()
Copy link
Collaborator

Choose a reason for hiding this comment

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

please just check mysql driver using separate fixture of resulted dump

@DenTray DenTray assigned pirs1337 and unassigned DenTray Dec 11, 2024
@pirs1337 pirs1337 removed their assignment Dec 17, 2024
@DenTray DenTray merged commit 497df89 into master Dec 23, 2024
2 checks passed
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.

6 participants