Cassandra\SchemaMetadataIntegrationTest::testSecondaryIndexes PHP Method

testSecondaryIndexes() public method

This test ensures that secondary indexes are properly handled by the driver.
    public function testSecondaryIndexes()
    {
        // Create the table and secondary index
        $this->createTableForSecondaryIndexes();
        $this->createSimpleSecondaryIndex();
        // Validate the schema metadata (no indexes exist)
        $table = $this->session->schema()->keyspace($this->keyspaceName)->table($this->tableNamePrefix);
        $this->assertCount(1, $table->indexes());
        $index = $table->index("simple");
        $this->assertIndex($index, "composites", "value1", false, false);
    }