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

Fix path inconsistencies #34

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

Fix path inconsistencies #34

wants to merge 3 commits into from

Conversation

ricpelo
Copy link

@ricpelo ricpelo commented Feb 25, 2018

Fixes #33.

Q A
Is bugfix? yes
New feature? no
Breaks BC? no
Tests pass? yes
Fixed issues #33

@ricpelo ricpelo changed the title Path inconsistences Fix path inconsistences Feb 25, 2018
@samdark samdark added this to the 2.0.5 milestone Feb 25, 2018
@ricpelo ricpelo changed the title Fix path inconsistences Fix path inconsistencies Feb 25, 2018
/**
* @var string Alias to the fixture data path, where data files should be written.
*/
public $fixtureDataPath = '@tests/unit/fixtures/data';
public $fixtureDataPath = '@tests/fixtures/data';
Copy link
Member

Choose a reason for hiding this comment

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

this would be breaking BC, can we fix overall consistency without BC break? And change the Paths in version 2.1 to be independent from unit tests then.

Copy link
Author

Choose a reason for hiding this comment

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

We could hardcode the former fixtureDataPath value into the config/console.php configuration file of the yii2-app-basic template:

https://github.com/yiisoft/yii2-app-basic/blob/561b98a03943d61efece28a648142e3ac3d9596c/config/console.php#L31-L37

Like this:

    'controllerMap' => [
        'fixture' => [ // Fixture generation command line.
            'class' => 'yii\faker\FixtureController',
            'fixtureDataPath' => '@tests/unit/fixtures/data',
        ],
    ],

Copy link
Member

Choose a reason for hiding this comment

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

@ricpelo won't help since app templates are never updated in existing projects.

Copy link
Author

Choose a reason for hiding this comment

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

@samdark You're right. Maybe we could do it for Yii 2.1?

Copy link
Member

Choose a reason for hiding this comment

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

We can release 2.1 version of the extension and note that it has backwards incompatibilities.

Copy link
Author

Choose a reason for hiding this comment

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

That could be great!

Copy link
Author

Choose a reason for hiding this comment

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

@samdark May I need to create another PR, this time against 2.1 branch?

Copy link
Member

Choose a reason for hiding this comment

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

Yes.

@ricpelo ricpelo changed the base branch from master to 2.1 March 31, 2018 13:37
@ricpelo
Copy link
Author

ricpelo commented Mar 31, 2018

@samdark I've just updated the PR so it's now against 2.1 branch.

@samdark samdark changed the base branch from 2.1 to master May 14, 2019 20:24
@samdark samdark modified the milestones: 2.0.5, 2.1.0 May 14, 2019
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.

Path inconsistencies
4 participants