File tree Expand file tree Collapse file tree 2 files changed +32
-22
lines changed
tests/Unit/Libraries/Cms/Form/Field Expand file tree Collapse file tree 2 files changed +32
-22
lines changed Original file line number Diff line number Diff 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 *
Original file line number Diff line number Diff 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.
You can’t perform that action at this time.
0 commit comments