|
|
@@ -347,6 +347,17 @@ class BelongsToTest extends \Cake\TestSuite\TestCase {
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
+ * Tests that property is being set using the constructor options.
|
|
|
+ *
|
|
|
+ * @return void
|
|
|
+ */
|
|
|
+ public function testPropertyOption() {
|
|
|
+ $config = ['propertyName' => 'thing_placeholder'];
|
|
|
+ $association = new BelongsTo('Thing', $config);
|
|
|
+ $this->assertEquals('thing_placeholder', $association->property());
|
|
|
+ }
|
|
|
+
|
|
|
+/**
|
|
|
* Test that plugin names are omitted from property()
|
|
|
*
|
|
|
* @return void
|