Completed
Pull Request — master (#287)
by Nic
08:24
created

testFoxyCartProductCategoryDeletion()   B

Complexity

Conditions 1
Paths 1

Size

Total Lines 30
Code Lines 12

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 30
rs 8.8571
c 0
b 0
f 0
cc 1
eloc 12
nc 1
nop 0
1
<?php
2
3
/**
4
 * Class FoxyStripeProductTest
5
 */
6
class FoxyStripeProductTest extends SapphireTest
7
{
8
9
    /**
10
     * @var string
11
     */
12
    protected static $fixture_file = 'foxystripe/tests/FoxyStripeTest.yml';
13
14
    /**
15
     *
16
     */
17
    function setUp()
0 ignored issues
show
Best Practice introduced by
It is generally recommended to explicitly declare the visibility for methods.

Adding explicit visibility (private, protected, or public) is generally recommend to communicate to other developers how, and from where this method is intended to be used.

Loading history...
18
    {
19
        parent::setUp();
20
21
        $groupForItem = OptionGroup::create();
22
        $groupForItem->Title = 'Sample-Group';
0 ignored issues
show
Documentation introduced by
The property Title does not exist on object<OptionGroup>. Since you implemented __set, maybe consider adding a @property annotation.

Since your code implements the magic setter _set, this function will be called for any write access on an undefined variable. You can add the @property annotation to your class or interface to document the existence of this variable.

<?php

/**
 * @property int $x
 * @property int $y
 * @property string $text
 */
class MyLabel
{
    private $properties;

    private $allowedProperties = array('x', 'y', 'text');

    public function __get($name)
    {
        if (isset($properties[$name]) && in_array($name, $this->allowedProperties)) {
            return $properties[$name];
        } else {
            return null;
        }
    }

    public function __set($name, $value)
    {
        if (in_array($name, $this->allowedProperties)) {
            $properties[$name] = $value;
        } else {
            throw new \LogicException("Property $name is not defined.");
        }
    }

}

Since the property has write access only, you can use the @property-write annotation instead.

Of course, you may also just have mistyped another name, in which case you should fix the error.

See also the PhpDoc documentation for @property.

Loading history...
23
        $groupForItem->write();
24
25
    }
26
27
    /**
28
     *
29
     */
30
    function testProductCreation()
0 ignored issues
show
Best Practice introduced by
It is generally recommended to explicitly declare the visibility for methods.

Adding explicit visibility (private, protected, or public) is generally recommend to communicate to other developers how, and from where this method is intended to be used.

Loading history...
31
    {
32
33
        //$this->logInWithPermission('Product_CANCRUD');
0 ignored issues
show
Unused Code Comprehensibility introduced by
86% of this comment could be valid code. Did you maybe forget this after debugging?

Sometimes obsolete code just ends up commented out instead of removed. In this case it is better to remove the code once you have checked you do not need it.

The code might also have been commented out for debugging purposes. In this case it is vital that someone uncomments it again or your project may behave in very unexpected ways in production.

This check looks for comments that seem to be mostly valid code and reports them.

Loading history...
34
        $default = $this->objFromFixture('FoxyCartProductCategory', 'default');
35
        $default->write();
36
37
    }
38
39
    /**
40
     *
41
     */
42
    function testProductDeletion()
0 ignored issues
show
Best Practice introduced by
It is generally recommended to explicitly declare the visibility for methods.

Adding explicit visibility (private, protected, or public) is generally recommend to communicate to other developers how, and from where this method is intended to be used.

Loading history...
43
    {
44
45
        //$this->logInWithPermission('Product_CANCRUD');
0 ignored issues
show
Unused Code Comprehensibility introduced by
86% of this comment could be valid code. Did you maybe forget this after debugging?

Sometimes obsolete code just ends up commented out instead of removed. In this case it is better to remove the code once you have checked you do not need it.

The code might also have been commented out for debugging purposes. In this case it is vital that someone uncomments it again or your project may behave in very unexpected ways in production.

This check looks for comments that seem to be mostly valid code and reports them.

Loading history...
46
        $product2 = $this->objFromFixture('ShippableProduct', 'product2');
47
        $product2->ParentID = ProductHolder::get()->first()->ID;
48
        $productID = $product2->ID;
49
50
        $product2->doPublish();
51
        $this->assertTrue($product2->isPublished());
0 ignored issues
show
Bug introduced by
The method assertTrue() does not seem to exist on object<FoxyStripeProductTest>.

This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.

This is most likely a typographical error or the method has been renamed.

Loading history...
52
53
        $versions = DB::query('Select * FROM "ShippableProduct_versions" WHERE "RecordID" = ' . $productID);
54
        $versionsPostPublish = array();
55
        foreach ($versions as $versionRow) $versionsPostPublish[] = $versionRow;
56
57
        $product2->delete();
58
        $this->assertTrue(!$product2->isPublished());
0 ignored issues
show
Bug introduced by
The method assertTrue() does not seem to exist on object<FoxyStripeProductTest>.

This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.

This is most likely a typographical error or the method has been renamed.

Loading history...
59
60
        $versions = DB::query('Select * FROM "ShippableProduct_versions" WHERE "RecordID" = ' . $productID);
61
        $versionsPostDelete = array();
62
        foreach ($versions as $versionRow) $versionsPostDelete[] = $versionRow;
63
64
        $this->assertEquals($versionsPostPublish, $versionsPostDelete);
0 ignored issues
show
Bug introduced by
The method assertEquals() does not seem to exist on object<FoxyStripeProductTest>.

This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.

This is most likely a typographical error or the method has been renamed.

Loading history...
65
66
    }
67
68
    /**
69
     *
70
     */
71 View Code Duplication
    function testProductTitleLeadingWhiteSpace()
0 ignored issues
show
Best Practice introduced by
It is generally recommended to explicitly declare the visibility for methods.

Adding explicit visibility (private, protected, or public) is generally recommend to communicate to other developers how, and from where this method is intended to be used.

Loading history...
Duplication introduced by
This method seems to be duplicated in your project.

Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.

You can also find more detailed suggestions in the “Code” section of your repository.

Loading history...
72
    {
73
74
        //$this->logInWithPermission('ADMIN');
0 ignored issues
show
Unused Code Comprehensibility introduced by
86% of this comment could be valid code. Did you maybe forget this after debugging?

Sometimes obsolete code just ends up commented out instead of removed. In this case it is better to remove the code once you have checked you do not need it.

The code might also have been commented out for debugging purposes. In this case it is vital that someone uncomments it again or your project may behave in very unexpected ways in production.

This check looks for comments that seem to be mostly valid code and reports them.

Loading history...
75
        $product = $this->objFromFixture('ShippableProduct', 'product1');
76
        $product->Title = " Test with leading space";
77
        $product->ParentID = ProductHolder::get()->first()->ID;
78
        $product->write();
79
80
        $this->assertEquals($product->Title, 'Test with leading space');
0 ignored issues
show
Bug introduced by
The method assertEquals() does not seem to exist on object<FoxyStripeProductTest>.

This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.

This is most likely a typographical error or the method has been renamed.

Loading history...
81
82
    }
83
84
    /**
85
     *
86
     */
87 View Code Duplication
    function testProductTitleTrailingWhiteSpace()
0 ignored issues
show
Best Practice introduced by
It is generally recommended to explicitly declare the visibility for methods.

Adding explicit visibility (private, protected, or public) is generally recommend to communicate to other developers how, and from where this method is intended to be used.

Loading history...
Duplication introduced by
This method seems to be duplicated in your project.

Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.

You can also find more detailed suggestions in the “Code” section of your repository.

Loading history...
88
    {
89
90
        //$this->logInWithPermission('ADMIN');
0 ignored issues
show
Unused Code Comprehensibility introduced by
86% of this comment could be valid code. Did you maybe forget this after debugging?

Sometimes obsolete code just ends up commented out instead of removed. In this case it is better to remove the code once you have checked you do not need it.

The code might also have been commented out for debugging purposes. In this case it is vital that someone uncomments it again or your project may behave in very unexpected ways in production.

This check looks for comments that seem to be mostly valid code and reports them.

Loading history...
91
        $product = $this->objFromFixture('ShippableProduct', 'product1');
92
        $product->Title = "Test with trailing space ";
93
        $product->ParentID = ProductHolder::get()->first()->ID;
94
        $product->write();
95
96
        $this->assertEquals($product->Title, 'Test with trailing space');
0 ignored issues
show
Bug introduced by
The method assertEquals() does not seem to exist on object<FoxyStripeProductTest>.

This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.

This is most likely a typographical error or the method has been renamed.

Loading history...
97
98
    }
99
100
    /**
101
     *
102
     */
103
    function testFoxyCartProductCategoryCreation()
0 ignored issues
show
Best Practice introduced by
It is generally recommended to explicitly declare the visibility for methods.

Adding explicit visibility (private, protected, or public) is generally recommend to communicate to other developers how, and from where this method is intended to be used.

Loading history...
104
    {
105
106
        //$this->logInWithPermission('Product_CANCRUD');
0 ignored issues
show
Unused Code Comprehensibility introduced by
86% of this comment could be valid code. Did you maybe forget this after debugging?

Sometimes obsolete code just ends up commented out instead of removed. In this case it is better to remove the code once you have checked you do not need it.

The code might also have been commented out for debugging purposes. In this case it is vital that someone uncomments it again or your project may behave in very unexpected ways in production.

This check looks for comments that seem to be mostly valid code and reports them.

Loading history...
107
        $category = $this->objFromFixture('FoxyCartProductCategory', 'apparel');
108
        $category->write();
109
        $categoryID = $category->ID;
110
111
        $FoxyCartProductCategory = FoxyCartProductCategory::get()->filter(array('Code' => 'APPAREL'))->first();
112
113
        $this->assertEquals($categoryID, $FoxyCartProductCategory->ID);
0 ignored issues
show
Bug introduced by
The method assertEquals() does not seem to exist on object<FoxyStripeProductTest>.

This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.

This is most likely a typographical error or the method has been renamed.

Loading history...
114
115
    }
116
117
    /**
118
     *
119
     */
120
    function testFoxyCartProductCategoryDeletion()
0 ignored issues
show
Best Practice introduced by
It is generally recommended to explicitly declare the visibility for methods.

Adding explicit visibility (private, protected, or public) is generally recommend to communicate to other developers how, and from where this method is intended to be used.

Loading history...
121
    {
122
123
        //$this->logInWithPermission('Product_CANCRUD');
0 ignored issues
show
Unused Code Comprehensibility introduced by
86% of this comment could be valid code. Did you maybe forget this after debugging?

Sometimes obsolete code just ends up commented out instead of removed. In this case it is better to remove the code once you have checked you do not need it.

The code might also have been commented out for debugging purposes. In this case it is vital that someone uncomments it again or your project may behave in very unexpected ways in production.

This check looks for comments that seem to be mostly valid code and reports them.

Loading history...
124
        $category = $this->objFromFixture('FoxyCartProductCategory', 'default');
125
        $category->write();
126
127
        $this->assertFalse($category->canDelete());
0 ignored issues
show
Bug introduced by
The method assertFalse() does not seem to exist on object<FoxyStripeProductTest>.

This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.

This is most likely a typographical error or the method has been renamed.

Loading history...
128
129
        $category2 = $this->objFromFixture('FoxyCartProductCategory', 'apparel');
130
        $category2->write();
131
        $category2ID = $category2->ID;
132
133
        $this->assertTrue($category2->canDelete());
0 ignored issues
show
Bug introduced by
The method assertTrue() does not seem to exist on object<FoxyStripeProductTest>.

This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.

This is most likely a typographical error or the method has been renamed.

Loading history...
134
135
        //$this->logOut();
0 ignored issues
show
Unused Code Comprehensibility introduced by
84% of this comment could be valid code. Did you maybe forget this after debugging?

Sometimes obsolete code just ends up commented out instead of removed. In this case it is better to remove the code once you have checked you do not need it.

The code might also have been commented out for debugging purposes. In this case it is vital that someone uncomments it again or your project may behave in very unexpected ways in production.

This check looks for comments that seem to be mostly valid code and reports them.

Loading history...
136
137
        //$this->logInWithPermission('ADMIN');
0 ignored issues
show
Unused Code Comprehensibility introduced by
86% of this comment could be valid code. Did you maybe forget this after debugging?

Sometimes obsolete code just ends up commented out instead of removed. In this case it is better to remove the code once you have checked you do not need it.

The code might also have been commented out for debugging purposes. In this case it is vital that someone uncomments it again or your project may behave in very unexpected ways in production.

This check looks for comments that seem to be mostly valid code and reports them.

Loading history...
138
139
        $this->assertFalse($category->canDelete());
0 ignored issues
show
Bug introduced by
The method assertFalse() does not seem to exist on object<FoxyStripeProductTest>.

This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.

This is most likely a typographical error or the method has been renamed.

Loading history...
140
        $this->assertTrue($category2->canDelete());
0 ignored issues
show
Bug introduced by
The method assertTrue() does not seem to exist on object<FoxyStripeProductTest>.

This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.

This is most likely a typographical error or the method has been renamed.

Loading history...
141
142
        //$this->logOut();
0 ignored issues
show
Unused Code Comprehensibility introduced by
84% of this comment could be valid code. Did you maybe forget this after debugging?

Sometimes obsolete code just ends up commented out instead of removed. In this case it is better to remove the code once you have checked you do not need it.

The code might also have been commented out for debugging purposes. In this case it is vital that someone uncomments it again or your project may behave in very unexpected ways in production.

This check looks for comments that seem to be mostly valid code and reports them.

Loading history...
143
        //$this->logInWithPermission('Product_CANCRUD');
0 ignored issues
show
Unused Code Comprehensibility introduced by
86% of this comment could be valid code. Did you maybe forget this after debugging?

Sometimes obsolete code just ends up commented out instead of removed. In this case it is better to remove the code once you have checked you do not need it.

The code might also have been commented out for debugging purposes. In this case it is vital that someone uncomments it again or your project may behave in very unexpected ways in production.

This check looks for comments that seem to be mostly valid code and reports them.

Loading history...
144
145
        $category2->delete();
146
147
        $this->assertFalse(in_array($category2ID, FoxyCartProductCategory::get()->column('ID')));
0 ignored issues
show
Bug introduced by
The method assertFalse() does not seem to exist on object<FoxyStripeProductTest>.

This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.

This is most likely a typographical error or the method has been renamed.

Loading history...
148
149
    }
150
151
    /**
152
     *
153
     */
154
    function testOptionGroupCreation()
0 ignored issues
show
Best Practice introduced by
It is generally recommended to explicitly declare the visibility for methods.

Adding explicit visibility (private, protected, or public) is generally recommend to communicate to other developers how, and from where this method is intended to be used.

Loading history...
155
    {
156
157
        //$this->logInWithPermission('Product_CANCRUD');
0 ignored issues
show
Unused Code Comprehensibility introduced by
86% of this comment could be valid code. Did you maybe forget this after debugging?

Sometimes obsolete code just ends up commented out instead of removed. In this case it is better to remove the code once you have checked you do not need it.

The code might also have been commented out for debugging purposes. In this case it is vital that someone uncomments it again or your project may behave in very unexpected ways in production.

This check looks for comments that seem to be mostly valid code and reports them.

Loading history...
158
        $group = $this->objFromFixture('OptionGroup', 'size');
159
        $group->write();
160
161
        $this->assertNotNull(OptionGroup::get()->first());
0 ignored issues
show
Bug introduced by
The method assertNotNull() does not seem to exist on object<FoxyStripeProductTest>.

This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.

This is most likely a typographical error or the method has been renamed.

Loading history...
162
163
    }
164
165
    /**
166
     *
167
     */
168
    function testOptionGroupDeletion()
0 ignored issues
show
Best Practice introduced by
It is generally recommended to explicitly declare the visibility for methods.

Adding explicit visibility (private, protected, or public) is generally recommend to communicate to other developers how, and from where this method is intended to be used.

Loading history...
169
    {
170
171
        //$this->logInWithPermission('ADMIN');
0 ignored issues
show
Unused Code Comprehensibility introduced by
86% of this comment could be valid code. Did you maybe forget this after debugging?

Sometimes obsolete code just ends up commented out instead of removed. In this case it is better to remove the code once you have checked you do not need it.

The code might also have been commented out for debugging purposes. In this case it is vital that someone uncomments it again or your project may behave in very unexpected ways in production.

This check looks for comments that seem to be mostly valid code and reports them.

Loading history...
172
        $group = $this->objFromFixture('OptionGroup', 'color');
173
        $group->write();
174
        $groupID = $group->ID;
175
176
        $this->assertTrue($group->canDelete());
0 ignored issues
show
Bug introduced by
The method assertTrue() does not seem to exist on object<FoxyStripeProductTest>.

This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.

This is most likely a typographical error or the method has been renamed.

Loading history...
177
178
        //$this->logOut();
0 ignored issues
show
Unused Code Comprehensibility introduced by
84% of this comment could be valid code. Did you maybe forget this after debugging?

Sometimes obsolete code just ends up commented out instead of removed. In this case it is better to remove the code once you have checked you do not need it.

The code might also have been commented out for debugging purposes. In this case it is vital that someone uncomments it again or your project may behave in very unexpected ways in production.

This check looks for comments that seem to be mostly valid code and reports them.

Loading history...
179
        //$this->logInWithPermission('Product_CANCRUD');
0 ignored issues
show
Unused Code Comprehensibility introduced by
86% of this comment could be valid code. Did you maybe forget this after debugging?

Sometimes obsolete code just ends up commented out instead of removed. In this case it is better to remove the code once you have checked you do not need it.

The code might also have been commented out for debugging purposes. In this case it is vital that someone uncomments it again or your project may behave in very unexpected ways in production.

This check looks for comments that seem to be mostly valid code and reports them.

Loading history...
180
181
        $this->assertTrue($group->canDelete());
0 ignored issues
show
Bug introduced by
The method assertTrue() does not seem to exist on object<FoxyStripeProductTest>.

This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.

This is most likely a typographical error or the method has been renamed.

Loading history...
182
        $group->delete();
183
184
        $this->assertFalse(in_array($groupID, OptionGroup::get()->column('ID')));
0 ignored issues
show
Bug introduced by
The method assertFalse() does not seem to exist on object<FoxyStripeProductTest>.

This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.

This is most likely a typographical error or the method has been renamed.

Loading history...
185
186
    }
187
188
    /**
189
     *
190
     */
191
    function testOptionItemCreation()
0 ignored issues
show
Best Practice introduced by
It is generally recommended to explicitly declare the visibility for methods.

Adding explicit visibility (private, protected, or public) is generally recommend to communicate to other developers how, and from where this method is intended to be used.

Loading history...
192
    {
193
194
        //$this->logInWithPermission('Product_CANCRUD');
0 ignored issues
show
Unused Code Comprehensibility introduced by
86% of this comment could be valid code. Did you maybe forget this after debugging?

Sometimes obsolete code just ends up commented out instead of removed. In this case it is better to remove the code once you have checked you do not need it.

The code might also have been commented out for debugging purposes. In this case it is vital that someone uncomments it again or your project may behave in very unexpected ways in production.

This check looks for comments that seem to be mostly valid code and reports them.

Loading history...
195
        $optionGroup = OptionGroup::get()->filter(array('Title' => 'Sample-Group'))->first();
196
        $option = $this->objFromFixture('OptionItem', 'large');
197
        $option->ProductOptionGroupID = $optionGroup->ID;
198
        $option->write();
199
        $optionID = $option->ID;
200
201
        $optionItem = OptionItem::get()->filter(array('ProductOptionGroupID' => $optionGroup->ID))->first();
202
203
        $this->assertEquals($optionID, $optionItem->ID);
0 ignored issues
show
Bug introduced by
The method assertEquals() does not seem to exist on object<FoxyStripeProductTest>.

This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.

This is most likely a typographical error or the method has been renamed.

Loading history...
204
205
    }
206
207
    /**
208
     *
209
     */
210
    function testOptionItemDeletion()
0 ignored issues
show
Best Practice introduced by
It is generally recommended to explicitly declare the visibility for methods.

Adding explicit visibility (private, protected, or public) is generally recommend to communicate to other developers how, and from where this method is intended to be used.

Loading history...
211
    {
212
213
        //$this->logInWithPermission('ADMIN');
0 ignored issues
show
Unused Code Comprehensibility introduced by
86% of this comment could be valid code. Did you maybe forget this after debugging?

Sometimes obsolete code just ends up commented out instead of removed. In this case it is better to remove the code once you have checked you do not need it.

The code might also have been commented out for debugging purposes. In this case it is vital that someone uncomments it again or your project may behave in very unexpected ways in production.

This check looks for comments that seem to be mostly valid code and reports them.

Loading history...
214
        $optionGroup = (OptionGroup::get()->first())
215
            ? OptionGroup::get()->first()
216
            : OptionGroup::create();
217
        if ($optionGroup->ID == 0) {
218
            $optionGroup->Title = 'Size';
219
            $optionGroup->write();
220
        }
221
        $option = $this->objFromFixture('OptionItem', 'small');
222
        $option->ProductOptionGroupID = $optionGroup->ID;
223
        $option->write();
224
        $optionID = $option->ID;
225
226
        $this->assertTrue($option->canDelete());
0 ignored issues
show
Bug introduced by
The method assertTrue() does not seem to exist on object<FoxyStripeProductTest>.

This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.

This is most likely a typographical error or the method has been renamed.

Loading history...
227
228
        //$this->logOut();
0 ignored issues
show
Unused Code Comprehensibility introduced by
84% of this comment could be valid code. Did you maybe forget this after debugging?

Sometimes obsolete code just ends up commented out instead of removed. In this case it is better to remove the code once you have checked you do not need it.

The code might also have been commented out for debugging purposes. In this case it is vital that someone uncomments it again or your project may behave in very unexpected ways in production.

This check looks for comments that seem to be mostly valid code and reports them.

Loading history...
229
        //$this->logInWithPermission('Product_CANCRUD');
0 ignored issues
show
Unused Code Comprehensibility introduced by
86% of this comment could be valid code. Did you maybe forget this after debugging?

Sometimes obsolete code just ends up commented out instead of removed. In this case it is better to remove the code once you have checked you do not need it.

The code might also have been commented out for debugging purposes. In this case it is vital that someone uncomments it again or your project may behave in very unexpected ways in production.

This check looks for comments that seem to be mostly valid code and reports them.

Loading history...
230
231
        $this->assertTrue($option->canDelete());
0 ignored issues
show
Bug introduced by
The method assertTrue() does not seem to exist on object<FoxyStripeProductTest>.

This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.

This is most likely a typographical error or the method has been renamed.

Loading history...
232
        $option->delete();
233
234
        $this->assertFalse(in_array($optionID, OptionItem::get()->column('ID')));
0 ignored issues
show
Bug introduced by
The method assertFalse() does not seem to exist on object<FoxyStripeProductTest>.

This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.

This is most likely a typographical error or the method has been renamed.

Loading history...
235
236
    }
237
238
}
239