Skip to content

Conversation

@ChrisSchwerdt
Copy link
Contributor

The ConfigurationFactory used the Collection class for retrieving
configuration keys, but the Collection class does not support nested
key names. This caused the retrieval of the schema.filter key to always
return the default value, which would never filter any tables.

  • Switched to using the Repository class because it properly
    supports nested keys.

  • Fixed the mock value for the schema configuration in the
    ConfigurationFactoryTests. It's a nested array, not a flattened
    array.

  • Fixed setFilterSchemaAssetsExpression() expectations in unit tests
    as Mockery::with() detects regular expressions and uses them when
    performing argument matching. This was causing false negatives
    when asserting method call arguments matched expected values.
    Added Mockery::mustBe() to use strict equality checks.

The ConfigurationFactory used the Collection class for retrieving
configuration keys, but the Collection class does not support nested
key names. This caused the retrieval of the schema.filter key to always
return the default value, which would never filter any tables.

 - Switched to using the Repository class because it properly
   supports nested keys.

 - Fixed the mock value for the schema configuration in the
   ConfigurationFactoryTests. It's a nested array, not a flattened
   array.

 - Fixed setFilterSchemaAssetsExpression() expectations in unit tests
   as Mockery::with() detects regular expressions and uses them when
   performing argument matching. This was causing false negatives
   when asserting method call arguments matched expected values.
   Added Mockery::mustBe() to use strict equality checks.
@driesvints
Copy link
Contributor

Thanks! :)

@patrickbrouwers patrickbrouwers merged commit eeb9428 into laravel-doctrine:1.1 Nov 24, 2016
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.

3 participants