Skip to content

Commit

Permalink
Update vendor (#1193)
Browse files Browse the repository at this point in the history
* update vendor

* fix indent block type test

* update vendor
  • Loading branch information
alavieille committed Apr 11, 2017
1 parent 2756a47 commit 7dcef1d
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 28 deletions.
24 changes: 12 additions & 12 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Expand Up @@ -48,20 +48,20 @@ public function testVideoBlock()
$formType = static::$kernel->getContainer()->get('open_orchestra_backoffice.generate_form_manager')->getFormType($block);
$form = $this->formFactory->create($formType, $block, array('csrf_protection' => false));

$form->submit(array(
'style' => 'default',
'videoType' => 'youtube',
'youtubeVideoId' => 'videoId',
'youtubeAutoplay' => true,
));

$this->assertTrue($form->isSynchronized());
/** @var BlockInterface $data */
$data = $form->getConfig()->getData();
$this->assertBlock($data);
$this->assertSame('videoId', $data->getAttribute('youtubeVideoId'));
$this->assertTrue($data->getAttribute('youtubeAutoplay'));
$this->assertFalse($data->getAttribute('youtubeFs'));
$form->submit(array(
'style' => 'default',
'videoType' => 'youtube',
'youtubeVideoId' => 'videoId',
'youtubeAutoplay' => true,
));

$this->assertTrue($form->isSynchronized());
/** @var BlockInterface $data */
$data = $form->getConfig()->getData();
$this->assertBlock($data);
$this->assertSame('videoId', $data->getAttribute('youtubeVideoId'));
$this->assertTrue($data->getAttribute('youtubeAutoplay'));
$this->assertFalse($data->getAttribute('youtubeFs'));
}

/**
Expand Down
Expand Up @@ -354,8 +354,8 @@ public function testFindPublishedByLanguageAndSiteId($language, $siteId, $count)
public function provideLanguageSiteIdAndCount()
{
return array(
array('en', '2', 6),
array('fr', '2', 6),
array('en', '2', 7),
array('fr', '2', 7),
);
}

Expand Down

0 comments on commit 7dcef1d

Please sign in to comment.