Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reorganize tests #181

Open
wants to merge 14 commits into
base: master
Choose a base branch
from
Open

Reorganize tests #181

wants to merge 14 commits into from

Conversation

arogachev
Copy link
Contributor

Q A
Is bugfix?
New feature?
Breaks BC?

@arogachev arogachev self-assigned this May 15, 2024
@arogachev arogachev added the type:test Test label May 15, 2024
@arogachev arogachev added this to the 1.1 milestone May 15, 2024
@arogachev arogachev marked this pull request as ready for review May 20, 2024 11:46
@arogachev arogachev requested a review from a team May 21, 2024 07:40
@arogachev arogachev added the status:code review The pull request needs review. label May 21, 2024
{
protected function getReader(): DataReaderInterface
{
return new IterableDataReader(self::$fixtures);
Copy link
Member

Choose a reason for hiding this comment

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

IterableDataReader is not common.


namespace Yiisoft\Data\Tests\Common;

trait FixtureTrait
Copy link
Member

Choose a reason for hiding this comment

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

Do this trait need somewhere else besides readers?

public function testWithReader(): void
{
$reader = $this
->getReader()
Copy link
Member

Choose a reason for hiding this comment

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

Suggestion only...

Create abstract classes Base%Filter%WithReaderTest with abstract method getReader() and use FixtureTrait.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status:code review The pull request needs review. type:test Test
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants