You are here

public function DynamicDepthCalculationTest::_testDepthProperty in Taxonomy Term Depth 7

1 call to DynamicDepthCalculationTest::_testDepthProperty()
DynamicDepthCalculationTest::testCalculateDepth in ./taxonomy_term_depth.test
Creates and ensures that a feed is unique, checks source, and deletes feed.

File

./taxonomy_term_depth.test, line 114

Class

DynamicDepthCalculationTest
Tests the taxonomy vocabulary interface.

Code

public function _testDepthProperty() {
  $term3 = $this->terms[2];
  $wrapper = entity_metadata_wrapper('taxonomy_term', $term3->tid);
  $this
    ->assertEqual($wrapper->depth
    ->value(), taxonomy_term_depth_get_by_tid($term3->tid), 'Depth property works fine with metadata wrapper');
}