Skip to content
Snippets Groups Projects
Unverified Commit bf44721f authored by Alex Pott's avatar Alex Pott
Browse files

Issue #3162479 by tedbow, Kristen Pol: Incorrect...

Issue #3162479 by tedbow, Kristen Pol: Incorrect Drupal\Composer\VendorHardening namespace is used instead of  Drupal\Composer\Plugin\VendorHardening

(cherry picked from commit 82097e2e)
parent 2c1c4e60
Branches
Tags
9 merge requests!1445Issue #2920039: Views' User Name exposed group filter validation,!1298Issue #3240993: Let layout builder render inline block translations,!774Issue #3174569: Example node template file name is incorrect,!497Issue #2463967: Use .user.ini file for PHP settings,!433Resolve #3163663 "Too many open files",!233Resolve #2693787 "Taxonomy term name",!133Resolve #2666286 "Clean up menuui",!112Resolve #3187004 "Drupaldatetime serialization issue",!53Resolve #3181870: Correct typo "the the" in "core/classList" deprecation message.
......@@ -33,7 +33,7 @@ class MessagePlugin implements PluginInterface, EventSubscriberInterface {
/**
* Configuration.
*
* @var \Drupal\Composer\VendorHardening\Config
* @var \Drupal\Composer\Plugin\VendorHardening\Config
*/
protected $config;
......
......@@ -43,7 +43,7 @@ class VendorHardeningPlugin implements PluginInterface, EventSubscriberInterface
/**
* Configuration.
*
* @var \Drupal\Composer\VendorHardening\Config
* @var \Drupal\Composer\Plugin\VendorHardening\Config
*/
protected $config;
......
......@@ -6,13 +6,13 @@
use Composer\IO\IOInterface;
use Composer\Package\PackageInterface;
use Composer\Package\RootPackageInterface;
use Drupal\Composer\VendorHardening\Config;
use Drupal\Composer\Plugin\VendorHardening\Config;
use Drupal\Composer\Plugin\VendorHardening\VendorHardeningPlugin;
use org\bovigo\vfs\vfsStream;
use PHPUnit\Framework\TestCase;
/**
* @coversDefaultClass Drupal\Composer\Plugin\VendorHardening\VendorHardeningPlugin
* @coversDefaultClass \Drupal\Composer\Plugin\VendorHardening\VendorHardeningPlugin
* @group VendorHardening
*/
class VendorHardeningPluginTest extends TestCase {
......@@ -36,7 +36,6 @@ public function setUp() {
public function testCleanPackage() {
$config = $this->getMockBuilder(Config::class)
->setMethods(['getPathsForPackage'])
->disableOriginalConstructor()
->getMock();
$config->expects($this->once())
......@@ -85,7 +84,6 @@ public function testCleanPathsForPackage() {
*/
public function testCleanAllPackages() {
$config = $this->getMockBuilder(Config::class)
->setMethods(['getAllCleanupPaths'])
->disableOriginalConstructor()
->getMock();
$config->expects($this->once())
......@@ -93,7 +91,6 @@ public function testCleanAllPackages() {
->willReturn(['drupal/package' => ['tests']]);
$package = $this->getMockBuilder(PackageInterface::class)
->setMethods(['getName'])
->getMockForAbstractClass();
$package->expects($this->any())
->method('getName')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment