Minor: Fix method name to get forum category title

pull/5168/head
Angel Fernando Quiroz Campos 2 years ago
parent 4768e2c18d
commit 6073247ead
  1. 2
      public/main/forum/viewforumcategory.php
  2. 2
      tests/CourseBundle/Repository/CLinkCategoryRepositoryTest.php

@ -174,7 +174,7 @@ if (is_array($forumCategories)) {
} }
$categorySessionId = 0; $categorySessionId = 0;
$forumCategoryInfo['id'] = $categoryId; $forumCategoryInfo['id'] = $categoryId;
$forumCategoryInfo['title'] = $forumCategory->getCatTitle(); $forumCategoryInfo['title'] = $forumCategory->getTitle();
$forumCategoryInfo['icon_session'] = ''; $forumCategoryInfo['icon_session'] = '';
// Validation when belongs to a session // Validation when belongs to a session

@ -37,7 +37,7 @@ class CLinkCategoryRepositoryTest extends AbstractApiTest
$this->assertSame($category->getResourceIdentifier(), $category->getIid()); $this->assertSame($category->getResourceIdentifier(), $category->getIid());
$this->assertSame('cat', (string) $category); $this->assertSame('cat', (string) $category);
$this->assertSame('desc', $category->getDescription()); $this->assertSame('desc', $category->getDescription());
$this->assertSame('cat', $category->getCategoryTitle()); $this->assertSame('cat', $category->getTitle());
$this->assertSame(1, $repo->count([])); $this->assertSame(1, $repo->count([]));
} }

Loading…
Cancel
Save