Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
bigboss86 committed Mar 9, 2021
1 parent 188c1e3 commit 3765276
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion spec/Form/Extension/ArticleTypeExtensionSpec.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,6 @@ function it_build_form_with_proper_fields(

function it_has_extended_type()
{
$this->getExtendedType()->shouldReturn(ArticleType::class);
$this->getExtendedTypes()->shouldReturn([ArticleType::class]);
}
}
2 changes: 1 addition & 1 deletion src/Fixture/Factory/BlogArticleCategoryExampleFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ protected function configureOptions(OptionsResolver $resolver): void
})
->setAllowedTypes('enabled', 'bool')
->setDefault('title', function (Options $options): string {
return $this->faker->word;
return $this->faker->text(20);
})
->setDefault('slug', function (Options $options): string {
return StringInflector::nameToCode((string) $options['title']);
Expand Down
2 changes: 1 addition & 1 deletion src/Fixture/Factory/BlogArticleExampleFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ protected function configureOptions(OptionsResolver $resolver): void
->setAllowedTypes('categories', 'array')
->setNormalizer('categories', LazyOption::findBy($this->articleCategoryRepository, 'code'))
->setDefault('title', function (Options $options): string {
return $this->faker->word;
return $this->faker->text(20);
})
->setDefault('content', function (Options $options): string {
return $this->faker->text;
Expand Down

0 comments on commit 3765276

Please sign in to comment.