Skip to content

Commit a035c2c

Browse files
authored
Fixes the unit tests (#41014)
* Fixes the tests * more docs * revert * old name * revert date tests
1 parent d0ddb9b commit a035c2c

File tree

2 files changed

+32
-22
lines changed

2 files changed

+32
-22
lines changed

libraries/src/Feed/FeedLink.php

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,38 @@ class FeedLink
6868
*/
6969
public $length;
7070

71+
/**
72+
* The link of the image.
73+
*
74+
* @var integer
75+
* @since __DEPLOY_VERSION__
76+
*/
77+
public $link;
78+
79+
/**
80+
* The description of the image.
81+
*
82+
* @var integer
83+
* @since __DEPLOY_VERSION__
84+
*/
85+
public $description;
86+
87+
/**
88+
* The height of the image.
89+
*
90+
* @var integer
91+
* @since __DEPLOY_VERSION__
92+
*/
93+
public $height;
94+
95+
/**
96+
* The width of the image.
97+
*
98+
* @var integer
99+
* @since __DEPLOY_VERSION__
100+
*/
101+
public $width;
102+
71103
/**
72104
* Constructor.
73105
*

tests/Unit/Libraries/Cms/Form/Field/AccessiblemediaFieldTest.php

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,6 @@ public function testGetWithDefaultValues()
5050
"preview" => null,
5151
"previewWidth" => null,
5252
"previewHeight" => null,
53-
"didnotexist" => null,
5453
"layout" => null,
5554
];
5655

@@ -84,27 +83,6 @@ public function testSetAndGetShouldBeEquals()
8483
}
8584
}
8685

87-
/**
88-
* Tests setting and getting a property.
89-
* A property is used here that is not supported by the field.
90-
*
91-
* @return void
92-
*
93-
* @since 4.0.0
94-
*/
95-
public function testSetAndGetShouldNotBeEquals()
96-
{
97-
$accessiblemediafield = $this->createAccessiblemediaField();
98-
$properties = [
99-
"didnotexist" => "thisshouldbenull",
100-
];
101-
102-
foreach ($properties as $property => $propertyvalue) {
103-
$accessiblemediafield->__set($property, $propertyvalue);
104-
$this->assertNotEquals($propertyvalue, $accessiblemediafield->__get($property));
105-
}
106-
}
107-
10886
/**
10987
* Tests method to attach a Form object to the field.
11088
* If no image file is selected, the value is an empty string.

0 commit comments

Comments
 (0)