You are here

function ServicesResourceTaxonomyTests::getNodeNids in Services 6.3

Same name and namespace in other branches
  1. 7.3 tests/functional/ServicesResourceTaxonomyTests.test \ServicesResourceTaxonomyTests::getNodeNids()

Helper. Get array of nids from nodes array.

1 call to ServicesResourceTaxonomyTests::getNodeNids()
ServicesResourceTaxonomyTests::testTermSelectNodes in tests/functional/ServicesResourceTaxonomyTests.test
Test taxonomy term selectNodes method.

File

tests/functional/ServicesResourceTaxonomyTests.test, line 510

Class

ServicesResourceTaxonomyTests
Run test cases for the endpoint with no authentication turned on.

Code

function getNodeNids($nodes) {
  $return = array();
  foreach ($nodes as $node) {
    $return[] = $node->nid;
  }
  return $return;
}