Skip to content

Commit 53c5e73

Browse files
committed
Merge pull request lazychaser#52 from afraca/master
Fix typo in receive
2 parents 9398174 + b7e31d6 commit 53c5e73

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

tests/NodeTest.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ public function dumpTree($items = null)
7878
}
7979
}
8080

81-
public function assertNodeRecievesValidValues($node)
81+
public function assertNodeReceivesValidValues($node)
8282
{
8383
$lft = $node->getLft();
8484
$rgt = $node->getRgt();
@@ -130,7 +130,7 @@ public function testGetsPlainNodeData()
130130
$this->assertEquals([ 3, 4 ], $data);
131131
}
132132

133-
public function testRecievesValidValuesWhenAppendedTo()
133+
public function testReceivesValidValuesWhenAppendedTo()
134134
{
135135
$node = new Category([ 'name' => 'test' ]);
136136
$root = Category::root();
@@ -146,7 +146,7 @@ public function testRecievesValidValuesWhenAppendedTo()
146146
$this->assertTrue($node->isDescendantOf($root));
147147
}
148148

149-
public function testRecievesValidValuesWhenPrependedTo()
149+
public function testReceivesValidValuesWhenPrependedTo()
150150
{
151151
$root = Category::root();
152152
$node = new Category([ 'name' => 'test' ]);
@@ -160,7 +160,7 @@ public function testRecievesValidValuesWhenPrependedTo()
160160
$this->assertTrue($node->isChildOf($root));
161161
}
162162

163-
public function testRecievesValidValuesWhenInsertedAfter()
163+
public function testReceivesValidValuesWhenInsertedAfter()
164164
{
165165
$target = $this->findCategory('apple');
166166
$node = new Category([ 'name' => 'test' ]);
@@ -173,7 +173,7 @@ public function testRecievesValidValuesWhenInsertedAfter()
173173
$this->assertTrue($node->isSiblingOf($target));
174174
}
175175

176-
public function testRecievesValidValuesWhenInsertedBefore()
176+
public function testReceivesValidValuesWhenInsertedBefore()
177177
{
178178
$target = $this->findCategory('apple');
179179
$node = new Category([ 'name' => 'test' ]);
@@ -192,7 +192,7 @@ public function testCategoryMovesDown()
192192
$target->append($node);
193193

194194
$this->assertTrue($node->hasMoved());
195-
$this->assertNodeRecievesValidValues($node);
195+
$this->assertNodeReceivesValidValues($node);
196196
$this->assertTreeNotBroken();
197197
}
198198

@@ -205,7 +205,7 @@ public function testCategoryMovesUp()
205205

206206
$this->assertTrue($node->hasMoved());
207207
$this->assertTreeNotBroken();
208-
$this->assertNodeRecievesValidValues($node);
208+
$this->assertNodeReceivesValidValues($node);
209209
}
210210

211211
/**

0 commit comments

Comments
 (0)