Skip to content

refactor: add assert on LiveModelTestCase::createModel()#9584

Merged
paulbalandan merged 1 commit intocodeigniter4:developfrom
paulbalandan:create-model-tests
May 27, 2025
Merged

refactor: add assert on LiveModelTestCase::createModel()#9584
paulbalandan merged 1 commit intocodeigniter4:developfrom
paulbalandan:create-model-tests

Conversation

@paulbalandan
Copy link
Member

Description
Adds a @phpstan-assert to let phpstan know the type of $this->model after calling $this->createModel().

Checklist:

  • Securely signed commits
  • Component(s) with PHPDoc blocks, only if necessary or adds value
  • Unit testing, with >80% coverage
  • User guide updated
  • Conforms to style guide

@paulbalandan paulbalandan added the testing Pull requests that changes tests only label May 26, 2025
@paulbalandan paulbalandan merged commit 327c7e1 into codeigniter4:develop May 27, 2025
47 checks passed
@paulbalandan paulbalandan deleted the create-model-tests branch May 27, 2025 11:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

testing Pull requests that changes tests only

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

Comments