Update to Drupal 8.2.0. For more information, see https://www.drupal.org/project/drupal/releases/8.2.0
This commit is contained in:
parent
2f563ab520
commit
f1c8716f57
1732 changed files with 52334 additions and 11780 deletions
|
@ -42,6 +42,7 @@ class ForumBreadcrumbBuilderBaseTest extends UnitTestCase {
|
|||
)
|
||||
);
|
||||
$forum_manager = $this->getMock('Drupal\forum\ForumManagerInterface');
|
||||
$translation_manager = $this->getMock('Drupal\Core\StringTranslation\TranslationInterface');
|
||||
|
||||
// Make an object to test.
|
||||
$builder = $this->getMockForAbstractClass(
|
||||
|
@ -51,6 +52,7 @@ class ForumBreadcrumbBuilderBaseTest extends UnitTestCase {
|
|||
$entity_manager,
|
||||
$config_factory,
|
||||
$forum_manager,
|
||||
$translation_manager,
|
||||
)
|
||||
);
|
||||
|
||||
|
@ -58,6 +60,7 @@ class ForumBreadcrumbBuilderBaseTest extends UnitTestCase {
|
|||
$property_names = array(
|
||||
'entityManager' => $entity_manager,
|
||||
'forumManager' => $forum_manager,
|
||||
'stringTranslation' => $translation_manager,
|
||||
);
|
||||
foreach ($property_names as $property_name => $property_value) {
|
||||
$this->assertAttributeEquals(
|
||||
|
@ -82,6 +85,10 @@ class ForumBreadcrumbBuilderBaseTest extends UnitTestCase {
|
|||
*/
|
||||
public function testBuild() {
|
||||
// Build all our dependencies, backwards.
|
||||
$translation_manager = $this->getMockBuilder('Drupal\Core\StringTranslation\TranslationInterface')
|
||||
->disableOriginalConstructor()
|
||||
->getMock();
|
||||
|
||||
$forum_manager = $this->getMockBuilder('Drupal\forum\ForumManagerInterface')
|
||||
->disableOriginalConstructor()
|
||||
->getMock();
|
||||
|
@ -125,6 +132,7 @@ class ForumBreadcrumbBuilderBaseTest extends UnitTestCase {
|
|||
$entity_manager,
|
||||
$config_factory,
|
||||
$forum_manager,
|
||||
$translation_manager,
|
||||
)
|
||||
);
|
||||
|
||||
|
|
|
@ -46,6 +46,7 @@ class ForumListingBreadcrumbBuilderTest extends UnitTestCase {
|
|||
$entity_manager = $this->getMock('Drupal\Core\Entity\EntityManagerInterface');
|
||||
$config_factory = $this->getConfigFactoryStub(array());
|
||||
$forum_manager = $this->getMock('Drupal\forum\ForumManagerInterface');
|
||||
$translation_manager = $this->getMock('Drupal\Core\StringTranslation\TranslationInterface');
|
||||
|
||||
// Make an object to test.
|
||||
$builder = $this->getMockBuilder('Drupal\forum\Breadcrumb\ForumListingBreadcrumbBuilder')
|
||||
|
@ -53,6 +54,7 @@ class ForumListingBreadcrumbBuilderTest extends UnitTestCase {
|
|||
$entity_manager,
|
||||
$config_factory,
|
||||
$forum_manager,
|
||||
$translation_manager,
|
||||
))
|
||||
->setMethods(NULL)
|
||||
->getMock();
|
||||
|
@ -116,6 +118,10 @@ class ForumListingBreadcrumbBuilderTest extends UnitTestCase {
|
|||
*/
|
||||
public function testBuild() {
|
||||
// Build all our dependencies, backwards.
|
||||
$translation_manager = $this->getMockBuilder('Drupal\Core\StringTranslation\TranslationInterface')
|
||||
->disableOriginalConstructor()
|
||||
->getMock();
|
||||
|
||||
$prophecy = $this->prophesize('Drupal\taxonomy\Entity\Term');
|
||||
$prophecy->label()->willReturn('Something');
|
||||
$prophecy->id()->willReturn(1);
|
||||
|
@ -177,6 +183,7 @@ class ForumListingBreadcrumbBuilderTest extends UnitTestCase {
|
|||
$entity_manager,
|
||||
$config_factory,
|
||||
$forum_manager,
|
||||
$translation_manager,
|
||||
)
|
||||
);
|
||||
|
||||
|
|
|
@ -51,6 +51,8 @@ class ForumNodeBreadcrumbBuilderTest extends UnitTestCase {
|
|||
->method('checkNodeType')
|
||||
->will($this->returnValue(TRUE));
|
||||
|
||||
$translation_manager = $this->getMock('Drupal\Core\StringTranslation\TranslationInterface');
|
||||
|
||||
// Make an object to test.
|
||||
$builder = $this->getMockBuilder('Drupal\forum\Breadcrumb\ForumNodeBreadcrumbBuilder')
|
||||
->setConstructorArgs(
|
||||
|
@ -58,6 +60,7 @@ class ForumNodeBreadcrumbBuilderTest extends UnitTestCase {
|
|||
$entity_manager,
|
||||
$config_factory,
|
||||
$forum_manager,
|
||||
$translation_manager,
|
||||
)
|
||||
)
|
||||
->setMethods(NULL)
|
||||
|
@ -123,6 +126,10 @@ class ForumNodeBreadcrumbBuilderTest extends UnitTestCase {
|
|||
*/
|
||||
public function testBuild() {
|
||||
// Build all our dependencies, backwards.
|
||||
$translation_manager = $this->getMockBuilder('Drupal\Core\StringTranslation\TranslationInterface')
|
||||
->disableOriginalConstructor()
|
||||
->getMock();
|
||||
|
||||
$prophecy = $this->prophesize('Drupal\taxonomy\Entity\Term');
|
||||
$prophecy->label()->willReturn('Something');
|
||||
$prophecy->id()->willReturn(1);
|
||||
|
@ -185,6 +192,7 @@ class ForumNodeBreadcrumbBuilderTest extends UnitTestCase {
|
|||
$entity_manager,
|
||||
$config_factory,
|
||||
$forum_manager,
|
||||
$translation_manager,
|
||||
)
|
||||
);
|
||||
|
||||
|
|
Reference in a new issue