29 private $itemTreeBounds;
31 private $uploadTreeTableName =
"uploadTreeTable";
33 private $uploadId = 43;
35 private $uploadTreeId = 8;
41 protected function setUp()
43 $this->itemTreeBounds =
new ItemTreeBounds($this->uploadTreeId, $this->uploadTreeTableName, $this->uploadId, $this->left, $this->right);
46 public function testGetUploadTreeTableName()
48 assertThat($this->itemTreeBounds->getUploadTreeTableName(), is($this->uploadTreeTableName));
51 public function testGetUploadTreeID()
53 assertThat($this->itemTreeBounds->getItemId(), is($this->uploadTreeId));
56 public function testGetUploadId()
58 assertThat($this->itemTreeBounds->getUploadId(), is($this->uploadId));
61 public function testGetLeft()
63 assertThat($this->itemTreeBounds->getLeft(), is($this->left));
66 public function testGetRight()
68 assertThat($this->itemTreeBounds->getRight(), is($this->right));
71 public function testContainsFiles()
73 assertThat($this->itemTreeBounds->containsFiles(), is(
true));
75 $this->itemTreeBounds =
new ItemTreeBounds($this->uploadTreeId, $this->uploadTreeTableName, $this->uploadId, $this->left, $this->left + 2);
77 assertThat($this->itemTreeBounds->containsFiles(), is(
true));
79 $this->itemTreeBounds =
new ItemTreeBounds($this->uploadTreeId, $this->uploadTreeTableName, $this->uploadId, $this->left, $this->left + 1);
81 assertThat($this->itemTreeBounds->containsFiles(), is(
false));