Problem/Motivation
Steps to reproduce
Proposed resolution
Remaining tasks
------ -----------------------------------------------------------------------
Line knowledge.module
------ -----------------------------------------------------------------------
738 Call to deprecated function theme_get_setting():
in drupal:11.3.0 and is removed from drupal:13.0.0. Use
\Drupal::service('Drupal\Core\Extension\ThemeSettingsProvider')->getS
etting()
instead.
🪪 function.deprecated
------ -----------------------------------------------------------------------
------ -----------------------------------------------------------------------
Line src/KnowledgeFieldItemList.php
------ -----------------------------------------------------------------------
33 Return type mixed of method
Drupal\knowledge\KnowledgeFieldItemList::offsetExists() is not
covariant with return type bool of method
Drupal\Core\TypedData\Plugin\DataType\ItemList<Drupal\Core\Field\Fiel
dItemInterface>::offsetExists().
------ -----------------------------------------------------------------------
------ -----------------------------------------------------------------
Line tests/src/Functional/KnowledgeCacheTagsTest.php
------ -----------------------------------------------------------------
69 Call to deprecated function entity_test_create_bundle():
in drupal:11.2.0 and is removed from drupal:12.0.0. Use
\Drupal\entity_test\EntityTestHelper::createBundle() instead.
🪪 function.deprecated
------ -----------------------------------------------------------------
------ -----------------------------------------------------------------
Line tests/src/Functional/KnowledgeNonNodeTest.php
------ -----------------------------------------------------------------
67 Call to deprecated function entity_test_create_bundle():
in drupal:11.2.0 and is removed from drupal:12.0.0. Use
\Drupal\entity_test\EntityTestHelper::createBundle() instead.
🪪 function.deprecated
494 Call to deprecated function entity_test_create_bundle():
in drupal:11.2.0 and is removed from drupal:12.0.0. Use
\Drupal\entity_test\EntityTestHelper::createBundle() instead.
🪪 function.deprecated
513 Call to deprecated function entity_test_create_bundle():
in drupal:11.2.0 and is removed from drupal:12.0.0. Use
\Drupal\entity_test\EntityTestHelper::createBundle() instead.
🪪 function.deprecated
------ -----------------------------------------------------------------
------ -----------------------------------------------------------------
Line tests/src/Functional/Rest/KnowledgeResourceTestBase.php
------ -----------------------------------------------------------------
94 Call to deprecated function entity_test_create_bundle():
in drupal:11.2.0 and is removed from drupal:12.0.0. Use
\Drupal\entity_test\EntityTestHelper::createBundle() instead.
🪪 function.deprecated
------ -----------------------------------------------------------------
------ ---------------------------------------------------------------------
Line tests/src/Unit/CompetencyAccessControlHandlerTest.php
------ ---------------------------------------------------------------------
20 @coversDefaultClass references an invalid class
\Drupal\knowledge\CompetencyAccessControlHandler
CompetencyAccessControlHandler.
🪪 phpunit.coversClass
82 @covers value \Drupal\knowledge\CompetencyAccessControlHandler
CompetencyAccessControlHandler::checkAccess references an invalid
method.
🪪 phpunit.coversMethod
146 @covers value \Drupal\knowledge\CompetencyAccessControlHandler
CompetencyAccessControlHandler::checkAccess references an invalid
method.
🪪 phpunit.coversMethod
210 @covers value \Drupal\knowledge\CompetencyAccessControlHandler
CompetencyAccessControlHandler::checkAccess references an invalid
method.
🪪 phpunit.coversMethod
280 @covers value \Drupal\knowledge\CompetencyAccessControlHandler
CompetencyAccessControlHandler::checkAccess references an invalid
method.
🪪 phpunit.coversMethod
351 @covers value \Drupal\knowledge\CompetencyAccessControlHandler
CompetencyAccessControlHandler::checkAccess references an invalid
method.
🪪 phpunit.coversMethod
394 @covers value \Drupal\knowledge\CompetencyAccessControlHandler
CompetencyAccessControlHandler::checkAccess references an invalid
method.
🪪 phpunit.coversMethod
428 @covers value \Drupal\knowledge\CompetencyAccessControlHandler
CompetencyAccessControlHandler::checkAccess references an invalid
method.
🪪 phpunit.coversMethod
492 @covers value \Drupal\knowledge\CompetencyAccessControlHandler
CompetencyAccessControlHandler::checkAccess references an invalid
method.
🪪 phpunit.coversMethod
555 @covers value \Drupal\knowledge\CompetencyAccessControlHandler
CompetencyAccessControlHandler::checkCreateAccess references an
invalid method.
🪪 phpunit.coversMethod
------ ---------------------------------------------------------------------
------ -----------------------------------------------------------------------
Line tests/src/Unit/CompetencyStorageTest.php
------ -----------------------------------------------------------------------
131 Trying to mock an undefined method getActiveDefinition() on class
Drupal\Core\Entity\EntityTypeManagerInterface.
🪪 phpunit.mockMethod
136 Trying to mock an undefined method getActiveFieldStorageDefinitions()
on class Drupal\Core\Entity\EntityFieldManagerInterface.
🪪 phpunit.mockMethod
173 Trying to mock an undefined method getActiveDefinition() on class
Drupal\Core\Entity\EntityTypeManagerInterface.
🪪 phpunit.mockMethod
178 Trying to mock an undefined method getActiveFieldStorageDefinitions()
on class Drupal\Core\Entity\EntityFieldManagerInterface.
🪪 phpunit.mockMethod
------ -----------------------------------------------------------------------
------ -----------------------------------------------------------------------
Line tests/src/Unit/KnowledgeManagerTest.php
------ -----------------------------------------------------------------------
48 Call to deprecated method returnValue() of class
PHPUnit\Framework\TestCase:
Use <code>$double->willReturn()instead of
$double->will
($this->returnValue())
🪪 method.deprecated
52 Call to deprecated method returnValue() of class
PHPUnit\Framework\TestCase:
Use $double->willReturn() instead of
$double->will
($this->returnValue())
🪪 method.deprecated
59 Call to deprecated method returnValue() of class
PHPUnit\Framework\TestCase:
Use $double->willReturn() instead of
$double->will
($this->returnValue())
🪪 method.deprecated
69 Call to deprecated method returnValue() of class
PHPUnit\Framework\TestCase:
Use $double->willReturn() instead of
$double->will
($this->returnValue())
🪪 method.deprecated
------ -----------------------------------------------------------------------
------ -----------------------------------------------------------------------
Line tests/src/Unit/KnowledgeStatisticsUnitTest.php
------ -----------------------------------------------------------------------
64 Call to deprecated method returnSelf() of class
PHPUnit\Framework\TestCase:
Use $double->willReturnSelf() instead of
$double->
will($this->returnSelf())
🪪 method.deprecated
68 Call to deprecated method returnSelf() of class
PHPUnit\Framework\TestCase:
Use $double->willReturnSelf() instead of
$double->
will($this->returnSelf())
🪪 method.deprecated
72 Call to deprecated method returnValue() of class
PHPUnit\Framework\TestCase:
Use $double->willReturn() instead of
$double->will
($this->returnValue())
🪪 method.deprecated
78 Call to deprecated method returnValue() of class
PHPUnit\Framework\TestCase:
Use $double->willReturn() instead of
$double->will
($this->returnValue())
🪪 method.deprecated
------ -----------------------------------------------------------------------
------ -----------------------------------------------------------------------
Line tests/src/Unit/Plugin/views/field/KnowledgeBulkFormTest.php
------ -----------------------------------------------------------------------
36 Call to deprecated method returnValue() of class
PHPUnit\Framework\TestCase:
Use $double->willReturn() instead of
$double->will
($this->returnValue())
🪪 method.deprecated
43 Call to deprecated method returnValue() of class
PHPUnit\Framework\TestCase:
Use $double->willReturn() instead of
$double->will
($this->returnValue())
🪪 method.deprecated
49 Call to deprecated method returnValue() of class
PHPUnit\Framework\TestCase:
Use $double->willReturn() instead of
$double->will
($this->returnValue())
🪪 method.deprecated
55 Call to deprecated method returnValue() of class
PHPUnit\Framework\TestCase:
Use $double->willReturn() instead of
$double->will
($this->returnValue())
🪪 method.deprecated
67 Call to deprecated method returnValue() of class
PHPUnit\Framework\TestCase:
Use $double->willReturn() instead of
$double->will
($this->returnValue())
🪪 method.deprecated
81 Call to deprecated method returnValue() of class
PHPUnit\Framework\TestCase:
Use $double->willReturn() instead of
$double->will
($this->returnValue())
🪪 method.deprecated
------ -----------------------------------------------------------------------
[ERROR] Found 35 errors
User interface changes
API changes
Data model changes
Issue fork knowledge-3560873
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #4
bluegeek9 commented