Skip to content

Commit 7ab8723

Browse files
nnegreybshaffer
authored andcommitted
Update Dialogflow region tags and fixes tests (GoogleCloudPlatform#673)
1 parent a5bf2cb commit 7ab8723

10 files changed

+16
-16
lines changed

dialogflow/src/context_list.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
* limitations under the License.
1616
*/
1717

18-
// [START dialogflow_list_context]
18+
// [START dialogflow_list_contexts]
1919
namespace Google\Cloud\Samples\Dialogflow;
2020

2121
use Google\Cloud\Dialogflow\V2\ContextsClient;
@@ -36,4 +36,4 @@ function context_list($projectId, $sessionId)
3636

3737
$contextsClient->close();
3838
}
39-
// [END dialogflow_list_context]
39+
// [END dialogflow_list_contexts]

dialogflow/src/detect_intent_stream.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
* limitations under the License.
1616
*/
1717

18-
// [START dialogflow_detect_intent_stream]
18+
// [START dialogflow_detect_intent_streaming]
1919
namespace Google\Cloud\Samples\Dialogflow;
2020

2121
use Google\Cloud\Dialogflow\V2\SessionsClient;
@@ -104,4 +104,4 @@ function detect_intent_stream($projectId, $path, $sessionId, $languageCode = 'en
104104

105105
$sessionsClient->close();
106106
}
107-
// [END dialogflow_detect_intent_stream]
107+
// [END dialogflow_detect_intent_streaming]

dialogflow/src/entity_list.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
* limitations under the License.
1616
*/
1717

18-
// [START dialogflow_list_entity]
18+
// [START dialogflow_list_entities]
1919
namespace Google\Cloud\Samples\Dialogflow;
2020

2121
use Google\Cloud\Dialogflow\V2\EntityTypesClient;
@@ -43,4 +43,4 @@ function entity_list($projectId, $entityTypeId)
4343

4444
$entityTypesClient->close();
4545
}
46-
// [END dialogflow_list_entity]
46+
// [END dialogflow_list_entities]

dialogflow/src/entity_type_list.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
* limitations under the License.
1616
*/
1717

18-
// [START dialogflow_list_entity_type]
18+
// [START dialogflow_list_entity_types]
1919
namespace Google\Cloud\Samples\Dialogflow;
2020

2121
use Google\Cloud\Dialogflow\V2\EntityTypesClient;
@@ -36,4 +36,4 @@ function entity_type_list($projectId)
3636

3737
$entityTypesClient->close();
3838
}
39-
// [END dialogflow_list_entity_type]
39+
// [END dialogflow_list_entity_types]

dialogflow/src/intent_list.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
* limitations under the License.
1616
*/
1717

18-
// [START dialogflow_list_intent]
18+
// [START dialogflow_list_intents]
1919
namespace Google\Cloud\Samples\Dialogflow;
2020

2121
use Google\Cloud\Dialogflow\V2\IntentsClient;
@@ -51,4 +51,4 @@ function intent_list($projectId)
5151
}
5252
$intentsClient->close();
5353
}
54-
// [END dialogflow_list_intent]
54+
// [END dialogflow_list_intents]

dialogflow/src/session_entity_type_list.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
* limitations under the License.
1616
*/
1717

18-
// [START dialogflow_list_session_entity_type]
18+
// [START dialogflow_list_session_entity_types]
1919
namespace Google\Cloud\Samples\Dialogflow;
2020

2121
use Google\Cloud\Dialogflow\V2\SessionEntityTypesClient;
@@ -32,4 +32,4 @@ function session_entity_type_list($projectId, $sessionId)
3232
}
3333
$sessionEntityTypesClient->close();
3434
}
35-
// [END dialogflow_list_session_entity_type]
35+
// [END dialogflow_list_session_entity_types]

dialogflow/test/contextTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ class contextTest extends \PHPUnit_Framework_TestCase
2929

3030
public static function setUpBeforeClass()
3131
{
32-
self::$contextId = 'fake_context_for_testing_' . time();
32+
self::$contextId = 'fake_context' . time();
3333
}
3434

3535
public function testCreateContext()

dialogflow/test/entityTypeTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ class entityTypeTest extends \PHPUnit_Framework_TestCase
2828

2929
public function setUp()
3030
{
31-
self::$entityTypeDisplayName = 'fake_display_name_for_testing_' . time();
31+
self::$entityTypeDisplayName = 'fake_display' . time();
3232
}
3333

3434
public function testCreateEntityType()

dialogflow/test/intentTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ class intentTest extends \PHPUnit_Framework_TestCase
3030

3131
public static function setUpBeforeClass()
3232
{
33-
self::$displayName = 'fake_display_name_for_testing_' . time();
33+
self::$displayName = 'fake_display' . time();
3434
}
3535

3636
public function testCreateIntent()

dialogflow/test/sessionEntityTypeTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ class sessionEntityTypeTest extends \PHPUnit_Framework_TestCase
3030

3131
public static function setUpBeforeClass()
3232
{
33-
self::$entityTypeDisplayName = 'fake_display_name_for_testing_' . time();
33+
self::$entityTypeDisplayName = 'fake_display' . time();
3434
}
3535

3636
public function testCreateSessionEntityType()

0 commit comments

Comments
 (0)