Skip to content

Commit 7e5119f

Browse files
author
Bohdan Korablov
committed
MAGETWO-37720: Cover Tango modules w. unit tests S2 (+0.7% from current 13.6%)
- Fixed some bugs
1 parent 29ca0e9 commit 7e5119f

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

app/code/Magento/Cms/Test/Unit/Block/Widget/Page/LinkTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ protected function setUp()
4444

4545
protected function tearDown()
4646
{
47-
$this->linkElement == null;
47+
$this->linkElement = null;
4848
}
4949

5050
public function testGetHrefEmpty()

app/code/Magento/Cms/Test/Unit/Helper/Wysiwyg/ImagesTest.php

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ protected function tearDown()
157157
}
158158

159159
/**
160-
* @param $path
160+
* @param string $path
161161
* @return string
162162
*/
163163
protected function getAbsolutePath($path)
@@ -369,7 +369,9 @@ public function testGetCurrentPathThrowException()
369369
->willReturn(false);
370370
$this->directoryWriteMock->expects($this->any())
371371
->method('create')
372-
->willThrowException(new \Magento\Framework\Exception\FileSystemException(__('')));
372+
->willThrowException(
373+
new \Magento\Framework\Exception\FileSystemException(__('Could not create directory.'))
374+
);
373375

374376
$this->imagesHelper->getCurrentPath();
375377

@@ -412,7 +414,7 @@ public function testGetCurrentUrl()
412414

413415
/**
414416
* @param string $baseUrl
415-
* @param string $filename
417+
* @param string $fileName
416418
* @param bool $isUsingStaticUrls
417419
* @param string $expectedHtml
418420
* @dataProvider providerGetImageHtmlDeclarationRenderingAsTag

0 commit comments

Comments
 (0)