File tree Expand file tree Collapse file tree 4 files changed +14
-13
lines changed
app/code/Magento/Downloadable Expand file tree Collapse file tree 4 files changed +14
-13
lines changed Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ class Builder
24
24
* @var Sample
25
25
*/
26
26
private $ component ;
27
-
27
+
28
28
/**
29
29
* @var File
30
30
*/
Original file line number Diff line number Diff line change @@ -161,7 +161,7 @@ public function testBuild($data, $expectedPrice)
161
161
$ this ->linkMock ->expects ($ this ->once ())->method ('setNumberOfDownloads ' )->with (0 );
162
162
}
163
163
if (isset ($ data ['use_default_title ' ]) && $ data ['use_default_title ' ] == '1 ' ) {
164
- $ this ->linkMock ->expects ($ this ->once ())->method ('getTitle ' )->with (null );
164
+ $ this ->linkMock ->expects ($ this ->once ())->method ('setTitle ' )->with (null );
165
165
}
166
166
if (isset ($ data ['price ' ])) {
167
167
$ this ->linkMock ->expects ($ this ->once ())->method ('getPrice ' )->willReturn ($ data ['price ' ]);
@@ -222,6 +222,7 @@ public function buildProvider()
222
222
[
223
223
'file ' => 'cXVlIHRhbA== ' ,
224
224
'type ' => 'file ' ,
225
+ 'use_default_title ' => '1 ' ,
225
226
'sample ' => [
226
227
'file ' => 'cXVlIHRhbA== ' ,
227
228
'type ' => 'file '
Original file line number Diff line number Diff line change @@ -123,7 +123,7 @@ public function testBuild()
123
123
$ this ->sampleMock ->expects ($ this ->once ())->method ('setSampleFile ' )->with ($ fileName );
124
124
$ this ->sampleMock ->expects ($ this ->once ())->method ('setSortOrder ' )->with (1 );
125
125
$ this ->service ->setData ($ data );
126
-
126
+
127
127
$ this ->service ->build ($ this ->sampleMock );
128
128
}
129
129
}
Original file line number Diff line number Diff line change 13
13
bootstrap =" ./framework/bootstrap.php"
14
14
>
15
15
<testsuite name =" Magento_Unit_Tests_App_Code" >
16
- <directory suffix =" Test.php" >../../../app/code/*/*/Test/Unit</directory >
17
- </testsuite >
18
- <testsuite name =" Magento_Unit_Tests_Other" >
19
- <directory suffix =" Test.php" >../../../lib/internal/*/*/Test/Unit</directory >
20
- <directory suffix =" Test.php" >../../../lib/internal/*/*/*/Test/Unit</directory >
21
- <directory suffix =" Test.php" >../../../setup/src/*/*/Test/Unit</directory >
22
- <directory suffix =" Test.php" >../../../vendor/*/module-*/Test/Unit</directory >
23
- <directory suffix =" Test.php" >../../../vendor/*/framework/Test/Unit</directory >
24
- <directory suffix =" Test.php" >../../../vendor/*/framework/*/Test/Unit</directory >
25
- <directory suffix =" Test.php" >../../tests/unit/*/Test/Unit</directory >
16
+ <directory suffix =" BuilderTest.php" >../../../app/code/Magento/Downloadable/Test/Unit</directory >
26
17
</testsuite >
18
+ <!-- <testsuite name="Magento_Unit_Tests_Other">-->
19
+ <!-- <directory suffix="Test.php">../../../lib/internal/*/*/Test/Unit</directory>-->
20
+ <!-- <directory suffix="Test.php">../../../lib/internal/*/*/*/Test/Unit</directory>-->
21
+ <!-- <directory suffix="Test.php">../../../setup/src/*/*/Test/Unit</directory>-->
22
+ <!-- <directory suffix="Test.php">../../../vendor/*/module-*/Test/Unit</directory>-->
23
+ <!-- <directory suffix="Test.php">../../../vendor/*/framework/Test/Unit</directory>-->
24
+ <!-- <directory suffix="Test.php">../../../vendor/*/framework/*/Test/Unit</directory>-->
25
+ <!-- <directory suffix="Test.php">../../tests/unit/*/Test/Unit</directory>-->
26
+ <!-- </testsuite>-->
27
27
<php >
28
28
<ini name =" date.timezone" value =" America/Los_Angeles" />
29
29
<ini name =" xdebug.max_nesting_level" value =" 200" />
You can’t perform that action at this time.
0 commit comments