We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 871a281 commit 4300c71Copy full SHA for 4300c71
tests/Feature/BundleHelperTest.php
@@ -68,4 +68,19 @@ public function testGettingFieldsByTerm() {
68
$this->assertObjectHasAttribute('name', $field);
69
$this->assertObjectHasAttribute('label', $field);
70
}
71
+
72
+ /** @test */
73
+ public function testGettingBundlesWithFields() {
74
+ $helper = new BundleHelper();
75
76
+ $bundles = $helper->getBundlesWithFields();
77
+ $this->assertNotEmpty($bundles);
78
79
+ $bundle = $bundles[0];
80
+ $this->assertObjectHasAttribute('fields', $bundle);
81
+ $this->assertObjectHasAttribute('name', $bundle);
82
+ $this->assertObjectHasAttribute('label', $bundle);
83
+ $this->assertObjectHasAttribute('cv_name', $bundle);
84
+ $this->assertObjectHasAttribute('accession', $bundle);
85
+ }
86
0 commit comments