-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #29 from flagbit/fix-select-form-3.0
Cannot save attribute options on select typed attributes
- Loading branch information
Showing
5 changed files
with
77 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,15 @@ | ||
# 3.0.1 | ||
|
||
## Bug fixes | ||
|
||
- Fixes issue saving Akeneo AttributeOptions. [#29][pr29] | ||
|
||
# 3.0.0 | ||
|
||
- Add support for Akeneo 3.0.0. | ||
|
||
## BC breaks | ||
|
||
- `Flagbit\Bundle\TableAttributeBundle\Normalizer\StructuredAttributeOptionNormalizer` was deleted. `Flagbit\Bundle\TableAttributeBundle\Normalizer\AttributeOptionNormalizer` is now used for its service. | ||
|
||
[pr29]: https://github.com/flagbit/akeneo-table-attribute-bundle/pull/29 |
29 changes: 29 additions & 0 deletions
29
spec/Flagbit/Bundle/TableAttributeBundle/Entity/AttributeOptionSpec.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
<?php | ||
|
||
namespace spec\Flagbit\Bundle\TableAttributeBundle\Entity; | ||
|
||
use Akeneo\Pim\Structure\Component\Model\AttributeInterface; | ||
use Flagbit\Bundle\TableAttributeBundle\AttributeType\TableType; | ||
use PhpSpec\ObjectBehavior; | ||
|
||
class AttributeOptionSpec extends ObjectBehavior | ||
{ | ||
function it_is_an_attribute_option_of_a_different_attribute(AttributeInterface $attribute) | ||
{ | ||
$this->setAttribute($attribute); | ||
$attribute->getType()->willReturn('foo'); | ||
$this->isTableAttribute()->shouldReturn(false); | ||
} | ||
|
||
function it_is_an_attribute_option_of_a_table_attribute(AttributeInterface $attribute) | ||
{ | ||
$this->setAttribute($attribute); | ||
$attribute->getType()->willReturn(TableType::FLAGBIT_CATALOG_TABLE); | ||
$this->isTableAttribute()->shouldReturn(true); | ||
} | ||
|
||
function it_is_an_attribute_option_without_an_attribute() | ||
{ | ||
$this->isTableAttribute()->shouldReturn(false); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters